[OPENAM-6552] access_token request sent by OAuth2Saml2GrantSPAdapter is not realm aware Created: 10/Aug/15 Updated: 20/Nov/16 Resolved: 14/Jan/16 |
|
Status: | Resolved |
Project: | OpenAM |
Component/s: | oauth2, SAML |
Affects Version/s: | 12.0.0, 12.0.1 |
Fix Version/s: | 12.0.3, 13.0.0 |
Type: | Bug | Priority: | Major |
Reporter: | Sachiko Wallace | Assignee: | Sachiko Wallace |
Resolution: | Fixed | Votes: | 0 |
Labels: | EDISON, release-notes | ||
Remaining Estimate: | 0h | ||
Time Spent: | 2h | ||
Original Estimate: | 0h |
Issue Links: |
|
||||||||
Rank: | 1|hzqt87: | ||||||||
Sprint: | AM Sustaining Sprint 16 | ||||||||
Support Ticket IDs: |
Description |
Set up OAuth2 authorization server on SAML2 service provider side as described in : http://docs.forgerock.org/en/openam/12.0.0/admin-guide/index/chap-oauth2.html When configuring OAuth2 client on SP side, create it under a subrealm. |
Comments |
Comment by Sachiko Wallace [ 10/Aug/15 ] |
solution could be something like: if (hostedEntityID.endsWith("/")){ sb.append("oauth2/access_token"); } else { sb.append("/oauth2/access_token"); } sb.append("?realm=" + ((realm==null || realm.isEmpty()) ? "/" : realm)); |
Comment by Mark de Reeper [ 10/Aug/15 ] |
Maybe sb.append("?realm=" + (StringUtils.isBlank(realm) ? "/" : realm)); |
Comment by Peter Major [X] (Inactive) [ 10/Aug/15 ] |
Looks like |
Comment by Sachiko Wallace [ 14/Jan/16 ] |
I committed the fix into trunk on 20th Oct, 2015 but forgot to mark as resolved. |