adobe / aio-lib-java

Adobe I/O - Java SDK
https://opensource.adobe.com/aio-lib-java/
Apache License 2.0
5 stars 17 forks source link

`aio-lib-java-ims` OAuth based workspace is unable to acquire token #210

Closed pulguptaAdobe closed 5 months ago

pulguptaAdobe commented 5 months ago

Expected Behaviour

OAuth based clients should be able to acquire access token

Actual Behaviour

OAuth based clients are not able to get access token

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Create a OAuth based workspace and call any operation which need a token for example: getProviders() API

Platform and Version

Java 11 + AEM + AEM Guides

Sample Code that illustrates the problem

Logs taken while reproducing problem

feign.FeignException$BadRequest: [400 Bad Request] during [POST] to [https://ims-na1-stg1.adobelogin.com/ims/token/v3?client_id=xxxx] [ImsApi#getOAuthAccessToken(String,String,String)]: 
[
    {
        "error": "invalid_target_scope",
        "error_description":"None of the requested scopes are both on the client and the binding."
    }
]
pulguptaAdobe commented 5 months ago

PR: https://github.com/adobe/aio-lib-java/pull/211