From 4feeac0926ff1763327ebde7106777e059471a20 Mon Sep 17 00:00:00 2001 From: Paco Aranda Date: Fri, 15 Dec 2023 17:54:35 +0100 Subject: [PATCH] refactor: Using public dynamic methods instead of static class constants --- src/fastapi_oauth2/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fastapi_oauth2/core.py b/src/fastapi_oauth2/core.py index 1eb6c59..f2eb51f 100644 --- a/src/fastapi_oauth2/core.py +++ b/src/fastapi_oauth2/core.py @@ -64,8 +64,8 @@ def __init__(self, client: OAuth2Client) -> None: self.provider = client.backend.name self.redirect_uri = client.redirect_uri self.backend = client.backend(OAuth2Strategy()) - self._authorization_endpoint = client.backend.AUTHORIZATION_URL - self._token_endpoint = client.backend.ACCESS_TOKEN_URL + self._authorization_endpoint = self.backend.authorization_url() + self._token_endpoint = self.backend.access_token_url() self._oauth_client = WebApplicationClient(self.client_id) @property