Openid-scope with client credentials grant may cause wrong error

Description

The use of openid scope in the token request with client_credentials grant may produce wrong error message.

At least for the clients with no audiences registered nor requested, the error message is:

{"error":"invalid_request","error_description":"InvalidMessageContext"}

Even though it should be

{"error":"invalid_target","error_description":"Improper or disallowed resource indicator"}

Environment

None

Activity

Henri MikkonenOctober 17, 2024 at 8:50 AM

Modified token-flow to ignore self audience via openid-scope with client_credentials grant

Fixed

Details

Assignee

Reporter

Fix versions

Created August 29, 2024 at 7:02 AM
Updated October 17, 2024 at 8:50 AM
Resolved October 17, 2024 at 8:50 AM

Flag notifications