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

Simplification of "need_info" response #237

Closed
jricher opened this issue Jan 20, 2016 · 1 comment
Closed

Simplification of "need_info" response #237

jricher opened this issue Jan 20, 2016 · 1 comment
Labels
simplify Related to the UMA1-to-UMA2 effort to simplify UMA V2.0

Comments

@jricher
Copy link

jricher commented Jan 20, 2016

The current response structure for "need_info" has structure that seems unnecessary given the function of the response. Current structure is:

{
 "error": "need_info",
 "error_details": {
   "authentication_context": {
     "required_acr": ["https://example.com/acrs/LOA3.14159"]
   },
   "requesting_party_claims": {
     "required_claims": [
       {
         "name": "email23423453ou453",
         "friendly_name": "email",
         "claim_type": "urn:oid:0.9.2342.19200300.100.1.3",
         "claim_token_format": 
["http://openid.net/specs/openid-connect-core-1_0.html#HybridIDToken"],
         "issuer": ["https://example.com/idp"]
       }
     ],
     "redirect_user": true,
     "ticket": "016f84e8-f9b9-11e0-bd6f-0021cc6004de"
   }
 }
}

What's the purpose of the requesting_party_claims structure? Removing the indirection yields a cleaner and no less expressive structure:

{
 "error": "need_info",
 "error_details": {
   "authentication_context": {
     "required_acr": ["https://example.com/acrs/LOA3.14159"]
   },
   "required_claims": [
     {
       "name": "email23423453ou453",
       "friendly_name": "email",
       "claim_type": "urn:oid:0.9.2342.19200300.100.1.3",
       "claim_token_format": 
["http://openid.net/specs/openid-connect-core-1_0.html#HybridIDToken"],
       "issuer": ["https://example.com/idp"]
     }
   ],
   "redirect_user": true
 }
}

NOTE: Removing ticket from the response is covered in #205, since this is a direct HTTP call the client doesn't have to keep any additional state between requests.

@xmlgrrl xmlgrrl added the simplify Related to the UMA1-to-UMA2 effort to simplify UMA label Feb 4, 2016
@xmlgrrl xmlgrrl added the V2.0 label Sep 30, 2016
@xmlgrrl
Copy link

xmlgrrl commented Jan 2, 2017

Completed the simplification process as of Core 2.0 rev 06: https://docs.kantarainitiative.org/uma/ed/uma-core-2.0-06.html

Eliminated an unnecessary internal level and turned redirect_user from a Boolean into a dynamic declaration of an endponi.

@xmlgrrl xmlgrrl closed this as completed Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simplify Related to the UMA1-to-UMA2 effort to simplify UMA V2.0
Projects
None yet
Development

No branches or pull requests

2 participants