-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: request object processing order related and general fixes
- `state` from a parsed request object is now always used even if subsequent processing of the request object fails - `response_mode` from a parsed request object is now additionally validated - validated `response_mode` from a parsed request object is now used even if subsequent processing of the request object fails - unsigned request objects now also have their payload asserted
- Loading branch information
Showing
7 changed files
with
219 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { RegistrationNotSupported } = require('../../helpers/errors'); | ||
|
||
/* | ||
* Rejects registration parameter as not supported. | ||
* | ||
* @throws: registration_not_supported | ||
*/ | ||
module.exports = function rejectRegistration(ctx, next) { | ||
if (ctx.oidc.params.registration !== undefined) { | ||
throw new RegistrationNotSupported(); | ||
} | ||
|
||
return next(); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.