okta / okta-oidc-js

okta-oidc-js
https://github.com/okta/okta-oidc-js
Other
395 stars 232 forks source link

feat[oidc-middleware]: Add callback to allow custom error handling #989

Open sergeyt opened 3 years ago

sergeyt commented 3 years ago

This basically allows creating curstom error page. Without this callback passport.js middleware sends by default only status code as text/plain response. After the fix it is possible to send custom text/html response.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

Other information

Reviewers


This change is Reviewable

bretterer commented 3 years ago

Hi @sergeyt,

Thank you fro this PR. Would you please take a few minutes and fill out the PR template with all details about this PR so we can efficiently review it? We would also need a CLA signed by you. Details of this can be found at https://developer.okta.com/cla

sergeyt commented 3 years ago

Hi @bretterer. Just signed CLA and set few points in PR description.

bretterer commented 3 years ago

Internal Ref: OKTA-388994