Skip to content

Commit

Permalink
Bugfix: Allow trailing slash in token endpoint path
Browse files Browse the repository at this point in the history
- Changes port routing filter to allow trailing slash in case of the token endpoint path

{patch}

Signed-off-by: Esta Nagy <[email protected]>
  • Loading branch information
nagyesta committed Oct 25, 2024
1 parent f4dbdde commit b070a40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def get_token_metadata(resource: str) -> dict:


@app.route(rule='/metadata/identity/oauth2/token', methods=['GET'])
@app.route(rule='/metadata/identity/oauth2/token/', methods=['GET'])
@ValidateParameters()
def token(resource: str = Query(pattern=url_regexp)):
return get_token_metadata(resource)
Expand Down

0 comments on commit b070a40

Please sign in to comment.