Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Mediator Error when receiving scope as null from the Endpoint Security Configurations Token URL #3302

Closed
Nishan-SE opened this issue Oct 24, 2024 · 1 comment

Comments

@Nishan-SE
Copy link

Description

"Error occurred in the mediation of the class mediator" when Oauth 2.0 protected backend token endpoint returns scope as null value.

Steps to Reproduce

  • Start the API Manager and go to the publisher portal.

  • Create an API by specifying the backend protected endpoint then navigate to the Endpoint Security Configuration using Oauth 2.0 and select the grant type as Client Credentials or Resource Owner Password with specifying the Token URL, Client ID and Client Secret.

  • Save and deploy the API.

If the specified backend token url return the scope as null as below:

{
"access_token": "xxxxxxxxx",
"refresh_token": "xxxxxxxxx",
"token_type": "xxxxxx",
"scope": null,
"expires_in": xxxxx
}

Then the below exception will get triggered -

Error occurred in the mediation of the class mediator.

Affected Component

APIM

Version

4.2.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants