keycloak / keycloak-nodejs-connect

Apache License 2.0
676 stars 421 forks source link

Adding an editable "access denied" page #413

Closed aybarsyildiz closed 1 year ago

aybarsyildiz commented 2 years ago

Description

It would be a good idea to add a callback for the error page on the Keycloak middleware.

For example, the middleware setup could look like this and it will be possible to create your own 401 Unauthorized pages.

app.use(keycloak.middleware({
  logout: '/logout',
  admin: '/',
  error: '/error'
}));

Discussion

No response

Motivation

On our project with my team, we are using node.js and Keycloak.
For the unauthorized page, we had some issues editing it.

Details

No response