Skip to content

Commit

Permalink
fix: CI removed imports from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Jul 23, 2023
1 parent 4b8cb8f commit b5bdafc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyeudiw/satosa/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

import satosa.logging_util as lu
from satosa.backends.base import BackendModule
from satosa.exception import SATOSABadRequestError
from satosa.exception import SATOSANoBoundEndpointError
from pyeudiw.satosa.exceptions import (
BadRequestError,
NoBoundEndpointError
)
from satosa.internal import InternalData
from satosa.response import Redirect, Response

Expand Down Expand Up @@ -203,10 +205,10 @@ def redirect_endpoint(self, context, *args):
self.metadata_jwk

if context.request_method.lower() != 'post':
raise SATOSABadRequestError("HTTP Method not supported")
raise BadRequestError("HTTP Method not supported")

if context.request_uri not in self.config["metadata"]['redirect_uris']:
raise SATOSANoBoundEndpointError("request_uri not valid")
raise NoBoundEndpointError("request_uri not valid")

# take the encrypted jwt, decrypt with my public key (one of the metadata) -> if not -> exception

Expand Down

0 comments on commit b5bdafc

Please sign in to comment.