Skip to content

Commit

Permalink
chore: remove sever metadata field from oauth.register() (#7355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster authored Oct 7, 2024
1 parent 548b2da commit 6876867
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/common/corpora_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def get_defaults_template(self):
"internal_url": "{api_base_url}",
"issuer": [],
"retry_status_forcelist": [429, 500, 502, 503, 504],
"server_metadata_url": "{api_base_url}/.well-known/openid-configuration",
}
template["issuer"].append(self.api_base_url + "/" if not self.api_base_url.endswith("/") else self.api_base_url)
template["issuer"].append("https://" + self.auth0_domain + "/")
Expand Down
1 change: 0 additions & 1 deletion backend/portal/api/app/v1/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def get_oauth_client(config: CorporaAuthConfig) -> FlaskRemoteApp:
authorize_url=config.api_authorize_url,
client_kwargs={"scope": "openid profile email offline_access write:collections"},
authorize_params={"audience": config.api_audience},
server_metadata_url=config.server_metadata_url,
)
return oauth_client

Expand Down

0 comments on commit 6876867

Please sign in to comment.