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

Failed to match audience values error message from oauth2.token.handler.clientauth.jwt.validator; #82

Open
GeertsP opened this issue Feb 3, 2022 · 0 comments

Comments

@GeertsP
Copy link

GeertsP commented Feb 3, 2022

Description:
Following up on the tutorial with the following link https://is.docs.wso2.com/en/latest/learn/private-key-jwt-client-authentication-for-oidc/ I have configured the service provider in Identity server 5.10 , created the necessary credentials and loaded these in wso2carbon.jks. I have created a signed JWT client token as follows:

{
"typ": "JWT",
"alg": "RS256",
"kid": "playground"
}
{
"iss": "PcxJbRWBA8dZCQbpxs56rFfNlFoa",
"sub": "PcxJbRWBA8dZCQbpxs56rFfNlFoa",
"exp": 1645969440,
"iat": 1643291040,
"jti": "14494155",
"aud": "https://localhost:9443/oauth2/token"

}

When after generating a client JWT token for this and run a curl against the identity server it gives a "failed to match audience values" message. Looking a the code documentation (I am no java programmer) it expects an "aud" value the same as the IS 5.10 server token endpoint. But I am supplying this so I don't understand the problem.
Am I doing something wrong or is this a bug?

Suggested Labels:

Suggested Assignees:

Affected Product Version:
Identity server 5.10

OS, DB, other environment details and versions:
Windows 10
org.wso2.carbon.identity.oauth2.token.handler.clientauth.jwt-2.2.8.jar
Standard installation - no modifications other than the ones needed for this use case

Steps to reproduce:
Summary outline described above, more details can be supplied

Related Issues:

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

No branches or pull requests

1 participant