openid / OpenID4VCI

66 stars 19 forks source link

Add more context about the value that Token Endpoint brings in pre-authorized code grant #21

Closed OIDF-automation closed 1 year ago

OIDF-automation commented 1 year ago

Imported from AB/Connect bitbucket: https://bitbucket.org/openid/connect/issues/1790

Original Reporter: KristinaYasuda

Talking to the current/potential implementors, a question, “why not send pre-authorized code directly to the Credential Endpoint?“ keeps popping up. Sure, one can design an OAuth 2.0 Token Exchange style “credential issuance“ (thought experiment here), but I strongly believe in the flexibility and extensibility that Token Endpoint brings. Below are few bullet points why - would love feedback/discussion if the WG agrees with the reasoning and if I am missing something:

I think the main point I am trying to make is that pre-authorized code is not a security token that is not suitable to protect an API (Credential Endpoint), but I might need help using correct terms…

OIDF-automation commented 1 year ago

Imported from AB/Connect bitbucket - Original Commenter: KristinaYasuda

“Credential endpoint should not care about the grant type”

OIDF-automation commented 1 year ago

Imported from AB/Connect bitbucket - Original Commenter: KristinaYasuda

SIOP call: the suggested action is to "add a text in the spec clarifying the value, without mentioning an option to send pre-auth code directly to the credential endpoint"

Sakurann commented 1 year ago

I think issue answered a question on why token endpoint very well, and there has been less questions on this topic. closing for now.