Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prospects for simple authentication? #123

Closed
vjcitn opened this issue Jun 29, 2016 · 5 comments
Closed

prospects for simple authentication? #123

vjcitn opened this issue Jun 29, 2016 · 5 comments

Comments

@vjcitn
Copy link

vjcitn commented Jun 29, 2016

It would be really nice to encapsulate the authentication
event in a function that can be called with some simple arguments. If we want to know that the user has a given google identity, could we not query for a google authenticator value? User would have to know the identity and possess the device at which the authenticator app gets a token, and then they pass that token to the session.

@byapparov
Copy link
Contributor

Are there any plans to support this? Basically it would be great to have a way to authenticate on non-interactive server via values stored in env variable without an auth file.

@hadley
Copy link
Member

hadley commented Apr 18, 2017

Do you have a specific example of how this would work with the google auth API?

@byapparov
Copy link
Contributor

byapparov commented Apr 18, 2017

I think it should be very similar to what I can see on googleAuthR:

options("googleAuthR.client_id" = "YOUR_CLIENT_ID")
options("googleAuthR.client_secret" = "YOUR_CLIENT_SECRET")

I would set this to environment variables alongside the refresh token if that is possible. e.g. .Renviron:

GOOGLE_CLIENT_ID=<myclient>
GOOGLE_CLIENT_SECRET=<secret>
GOOGLE_REFRESH_TOKEN=<this probably will also be required>

@hadley
Copy link
Member

hadley commented Apr 18, 2017

But you don't need a client id and secret for bigrquery. They're already set inside the package.

@hadley
Copy link
Member

hadley commented Apr 18, 2017

The recommend way to log in on a non-interactive server is to use set_service_token()

@hadley hadley closed this as completed Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants