0

I have an installed app that is a toolkit for the user, and as such they're able to choose their own scopes. I've run in to an issue with a scope limit when being passed as parameters via the URL. As such I'm looking to implement Incremental Authorization so that they only have to authorize scopes as they use them, and they don't have to also add scopes again from previous to overwrite.

I'm using the GoogleWebAuthorizationBroker class to do the authorization, but I'm not seeing anything that would allow me to implement Incremental Authorization without basically having to rewrite the delivered API classes. Is there any way to do this with the API?

squid808
  • 1,430
  • 2
  • 14
  • 31
  • 1
    The library currently doesn't support it. Our code base is in GitHub - https://github.com/google/google-api-dotnet-client. You can create a feature request in the repository, and it will be great if you create a pull request and add this feature yourself. I would recommend you in this point to create a service with all the required scopes from the first place. Another option is to create another service with new scopes. It's not the best solution, but it should work for you. – peleyal Nov 03 '15 at 03:39
  • I was afraid you'd say that. I'm working on a pull request now, trying to figure it out without breaking interface contracts and trying to figure out how to test it with my own code. Since I'm creating a wrapper for any/all APIs, I have to let users choose as many scopes as they want, and since they get added to the URL when authorizing they get cut off at something like 1024 characters (30+ scopes). Thanks for the input. – squid808 Nov 03 '15 at 05:08
  • Thanks for working on it. Discussion was moved to https://github.com/google/google-api-dotnet-client/pull/624 (squid808's pull request) – peleyal Nov 07 '15 at 22:46

0 Answers0