[ 
https://issues.apache.org/jira/browse/CXF-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15608704#comment-15608704
 ] 

Sergey Beryozkin commented on CXF-7110:
---------------------------------------

As far as I recall a client can request a token be issued for a specific 
audience using an audience parameter - if the client uses it then it must match 
the pre-registered audiences, however I'm not sure the check which fails for 
you is the right one in the scope of the grant to the token exchange flow...

> Inflexible jwt audience restriction validation
> ----------------------------------------------
>
>                 Key: CXF-7110
>                 URL: https://issues.apache.org/jira/browse/CXF-7110
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS Security
>    Affects Versions: 3.1.7
>         Environment: JVM 1.7, Ubuntu 14
>            Reporter: Shaleen Mishra
>
> JwtUtils.validateJwtAudienceRestriction checks the audience url matches the 
> current request url (from the context). This works only during development 
> but is most likely to fail because the actual url of the resource server may 
> be behind the proxy or load balancer etc. e.g. The actual request is sent to 
> mycomany.com/oauth and the requester sends this string in the audience 
> parameter but the server actually serving the request may have a url like 
> localhost:8080/oauth. So the match fails. And thanks to the static util 
> function, it can not be customized easily.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to