oidc-exchange: update OIDC minting endpoint

Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
William Woodruff 2024-01-10 16:05:30 -05:00
parent c12cc61414
commit cd96453c9d
No known key found for this signature in database

View file

@ -164,7 +164,7 @@ def render_claims(token: str) -> str:
repository_url = get_normalized_input("repository-url") repository_url = get_normalized_input("repository-url")
repository_domain = urlparse(repository_url).netloc repository_domain = urlparse(repository_url).netloc
token_exchange_url = f"https://{repository_domain}/_/oidc/github/mint-token" token_exchange_url = f"https://{repository_domain}/_/oidc/mint-token"
# Indices are expected to support `https://{domain}/_/oidc/audience`, # Indices are expected to support `https://{domain}/_/oidc/audience`,
# which tells OIDC exchange clients which audience to use. # which tells OIDC exchange clients which audience to use.