Skip to content

IdP error status codes #693

Closed
Closed

Description

@jvherweg

There are several places where the IdP codes uses normal Errors instead of HttpErrors. In several places this is not relevant as those classes would be called by the oidc-provider library which would ignore the status code anyway. The main places where this can be an issue are the IdpInteractionHttpHandlers that throw normal errors through the usage of assert. Currently these errors get handled by the wrapping IdpRouteController, which renders the error on the relevant html page when there is an error and ignores the status code. But if we ever want to look into potentially having a more API-like solution we probably also want to return the correct status codes in those cases.

Activity

  1. removed their assignment
    on Apr 20, 2021
  2. jvherweg commented on Sep 8, 2021

    @jvherweg
    MemberAuthor

    #932 (comment)

    Maybe we should have our own assert functions that return more appropriate errors?

  3. jvherweg commented on Oct 10, 2023

    @jvherweg
    MemberAuthor

    This was added some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions