Skip to content

Commit

Permalink
fix: add iss to error responses when issAuthResp is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 5, 2021
1 parent 2edbe33 commit 05ac3a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/shared/authorization_error_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ module.exports = (provider) => {
const renderError = instance(provider).configuration('renderError');
await renderError(ctx, out, err);
} else {
if (instance(provider).configuration('features.issAuthResp.enabled')) {
out.iss = provider.issuer;
}
let mode = safe(params.response_mode);
if (!instance(provider).responseModes.has(mode)) {
mode = resolveResponseMode(safe(params.response_type));
Expand Down

0 comments on commit 05ac3a8

Please sign in to comment.