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

How do you modify the API token request? #8

Open
sdondley opened this issue Aug 4, 2018 · 1 comment
Open

How do you modify the API token request? #8

sdondley opened this issue Aug 4, 2018 · 1 comment

Comments

@sdondley
Copy link

sdondley commented Aug 4, 2018

I had to modify the __DATA__ code in API::Google::Server.pm to allow access to additional access tokens by changing the scope property in the link. Is there a better way to do this?

@pscott-au
Copy link

I also just worked out I needed to do this. Trying to add in scopes for GMail. I had to perldoc -l API::Google::Server to get the installed path of Server.pm and then modify the hard coded html block to include the extra scope so that the scope is included in the URL link to Google for AUTH request generated by the goauth CLI tool. There seem to be a variation between this repo and cpanel and also something perhaps in mojo or a dependency that gives precendence to API::Google::Server over the local Server.pm in the package.

in my cli goauth version 0.12
Mojolicious::Commands->start_app('Moo::Google::Server'
Mojolicious::Commands->start_app(''WebService::Google::Client::Server'
as well as some kind of mojo that results in API::Google::Server being used.

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