This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
Enforce client grant_types and response_types #217
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #95 #96
Breaking changes
Existing client registrations that did not follow the OIDC specification will now behave according to specification. Clients must now be explicitly registered with the sets of
response_type
andgrant_type
values that they will use.For example, a client that intends to use the implicit flow must have
token id_token
orid_token token
defined on itsresponse_types
claim andimplicit
on itsgrant_types
claim in order to work.Existing clients without a defined
response_types
claim will act as though their only supportedresponse_type
values arecode
. Clients using other response types must have their registration data updated usingnv update client [id] [json]
or otherwise.Summary
response_types
andgrant_types
code id_token
is equivalent toid_token code
NODE_ENV
set no longer validates client metadata with production logic