need add "access_token_issuer" to the list of expected token issuers

65 views
Skip to first unread message

Safa Achour

unread,
Oct 29, 2025, 5:25:12 AMOct 29
to WildFly
Hello, 

We are using Wildfly 29 integrated with ADFS using OIDC authentication.
when we use API we got issue : 

 org.jose4j.jwt.consumer.InvalidJwtException: JWT (claims->*****) rejected due to invalid claims or other invalid content. Additional details: [[12] Issuer (iss) claim value (********/adfs/services/trust) doesn't match expected value of ******/adfs]


After investigation we noticed that on ADFS OIDC configuration (****/adfs/.well-known/openid-configuration)

we have two issuers definition
{ "issuer": "*********/adfs",
--------
--------,
"access_token_issuer": "********/adfs/services/trust",
---------,
}

The issue is that elytron subsytem expects issuer equal "issuer" attribute but ADFS send 
"access_token_issuer" on the generate access token.

is there a why to extend expected issuer list under IssVallidatror?




 

Safa Achour

unread,
Oct 30, 2025, 10:29:51 AMOct 30
to WildFly
is that possible by configurations ?

Safa Achour

unread,
Nov 20, 2025, 2:57:20 AMNov 20
to WildFly
any suggestion please? 

we have implemented a customization on elytron module as w quick fix but we still facing the issue using JBOS EAP and we need an official fix for that.


Diana Krepinska

unread,
Nov 26, 2025, 8:48:48 AM (11 days ago) Nov 26
to WildFly
The "access_token_issuer" is not part of the OIDC specification so WF does not support it. Can this be addressed in settings of ADFS instead?

Safa Achour

unread,
Nov 26, 2025, 9:06:29 AM (11 days ago) Nov 26
to WildFly
Hello, 

This how ADFS generate  access_token , i am not sure if we can customize this part of ADFS system.

As a quick fix, we have introduced a small customization on the "wildfly-elytron-http-oidc" on class TokenValidator:Builder:build()

Screenshot 2025-11-26 150316.png

this is working fine and we can use our REST API call using ADFS tokens.
so we provided this as solution for wildfly instaallation but still facing the same issue with JbossEAP installations.

Best regards,
Reply all
Reply to author
Forward
0 new messages