Skip to content

Commit 74d8013

Browse files
authored
oidc: add a NOTE about duped route (#15183)
Signed-off-by: William Woodruff <[email protected]>
1 parent a280218 commit 74d8013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

warehouse/oidc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def includeme(config):
4848

4949
config.add_route("oidc.audience", "/_/oidc/audience", domain=auth)
5050
config.add_route("oidc.mint_token", "/_/oidc/mint-token", domain=auth)
51+
# NOTE: This is a legacy route for the above. Pyramid requires route
52+
# names to be unique, so we can't deduplicate it.
5153
config.add_route("oidc.github.mint_token", "/_/oidc/github/mint-token", domain=auth)
5254

5355
# Compute OIDC metrics periodically

0 commit comments

Comments
 (0)