Add an allowPublicClients option to disable check for Authentication header#21
Add an allowPublicClients option to disable check for Authentication header#21ebymatthew wants to merge 1 commit intodomenic:masterfrom
Conversation
…authentication header with client credentials
|
Do you think we should call |
|
I left |
|
Hmm, will have to investigate further. I don't think considerations of the authorization_code flow should impact the ROPC flow coder experience though. |
|
I considered not adding the |
|
Didn't see your previous comment. I agree, especially considering that flow isn't even supported at this point. |
This pull request replaces #20.
After further reading reading of the spec, my understanding is client type is a property of a client and not the entire server. With #20, the entire server would be configured public or confidential. With this PR a server could be configured to handle both public and confidential client types and act appropriately.
The allowPublicClients defaults to false to preserve compatibility with previous versions.
If the option is false:
If the option is true:
This approach also allows the potential for future support of the authorization_code grant type. Where you may receive a clientId but no secret: http://tools.ietf.org/html/rfc6749#section-3.2.1