Skip to content

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

@pulguptaAdobe

Description

@pulguptaAdobe

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."
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions