cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Invalid scope with Android SDK

shain
Level 1
Level 1

I am trying to integrate WebEx into an existing Android application.
I have registered an application with a custom redirect uri, integrated the SDK and followed the sample to authorize using OAuthWebViewAuthenticator.

To keep it simple, i have added the scopes meeting:schedules_read and meeting:schedules_write during the registration.
I call the authenticator like this:

String scope = "meeting:schedules_read meeting:schedules_write";
OAuthWebViewAuthenticator authenticator = new OAuthWebViewAuthenticator(clientId, clientSecret, scope, redirectUri, email);
authenticator.authorize(binding.webview, result1 -> {

 As a result i get an invalid scope error with the description "The requested scope is invalid"

The called url in the log contains this
scope=Identity%3ASCIM%20identity%3Athings_read%20meeting%3Alogin%20meeting%3Aschedules_read%20meeting%3Aschedules_write%20spark%3Aall%20webexsquare%3Aget_conversation%20spark%3Akms

Is there an error in how i define the scope string for the authenticator?

Who Me Too'd this topic