Hi all, I am trying to get access token and refresh token with POST method.
Firstly, I called
AuthorizationManager.authorize( new AuthorizeRequest.Builder(requestContext) .addScopes(scope) .forGrantType(AuthorizeRequest.GrantType.AUTHORIZATION_CODE) // Set your code challenge and code challenge method - "plain" or "S256". .withProofKeyParameters(SHA256_key , "S256") .build() );
with this scope:
final String scopeDataString = "{\"device_model\":\"" + "MY_DEVICE_ID" + "\", \"serial\":\"" + MY_DEVICE_SERIAL + "\", \"is_test_device\":\"" + "true" + "\", \"should_include_non_live\":\"" + "true" + "\"}"; JSONObject scopeData; try { scopeData = new JSONObject(scopeDataString); return ScopeFactory.scopeNamed("dash:replenish", scopeData); } catch (JSONException e) { Log.e(TAG, "Error during scope data JSON object creation", e); } return null;
After this ordering process, Amazon service returns onSuccess method of AuthorizeListener.
However, when I checked the clientId by;
authorizeResult.getClientId()
it returns different clientId from the one that we created in the security profile page.
What could be the reason?