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

Use a service account instead of OAuth #26

Open
ddonnini opened this issue Sep 17, 2018 · 1 comment
Open

Use a service account instead of OAuth #26

ddonnini opened this issue Sep 17, 2018 · 1 comment

Comments

@ddonnini
Copy link
Contributor

Hi Tobias!

I'd like to use a service account with this bundle in order to achieve a server-to-server situation.
https://developers.google.com/identity/protocols/OAuth2ServiceAccount

Right now it is achievable with a little trick. Use the bundle with a dummy config and then manipulate the GoogleClient.

$googleClient = $this->happyrGoogleClient->getGoogleClient();
$googleClient->setAuthConfigFile($pathToAuthConfigFile);

And everything works good. But I have all the required bundle config unused.

Maybe two new parameters (type and service_auth_config_file) and remove all requireness in other config fields?

What do you think?

@aschempp
Copy link
Collaborator

aschempp commented Feb 4, 2019

see #18

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

2 participants