adrianbrs/nest-oidc-provider

Error when interaction aborted

Closed this issue · 3 comments

Issue: When the user aborts the interaction it breaks the application and it's not possible to use it until cookies are cleared.

{"error":"access_denied","error_description":"End-user aborted interaction"}

Error:

TypeError: Cannot read properties of undefined (reading 'getOIDCScopeEncountered')

Hi @erbilsilik, can you provide the steps you did to reproduce this issue?
Thanks!

Hi @adrianbrs,

You can use your example application to reproduce.

  1. Start the application and go to the homepage
  2. Press Click here to authenticate
  3. Enter user and password information and press Sign in
  4. Try to go back or press Cancel in the next screen

Thanks!

Oh, it's just a miskate in the example project, because the interaction is aborted the grant entity cannot be found.

scopes: grant.getOIDCScopeEncountered()

Also, I will improve the example project to show these type of errors on homepage, instead of returning a JSON response.
Thanks for reporting this!