File tree Expand file tree Collapse file tree 9 files changed +14
-12
lines changed Expand file tree Collapse file tree 9 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 4
4
from ..exceptions import BadCredentialException
5
5
from ..libs import bearer_transport , get_jwt_strategy
6
6
from ..models import User
7
- from .constants import GITHUB_USERINFO_URL
7
+
8
+ GITHUB_USERINFO_URL = 'https://api.github.com/user'
8
9
9
10
10
11
class GithubAuthBackend (OAuthBackend ):
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
from httpx_oauth .clients .github import GitHubOAuth2
4
4
5
5
from ..libs import fastapi_users
6
- from .libs import auth_backend
6
+ from .backend import auth_backend
7
7
8
8
github_oauth_client = GitHubOAuth2 (
9
9
client_id = Configs .GITHUB_CLIENT_ID ,
Original file line number Diff line number Diff line change 4
4
from ..exceptions import BadCredentialException
5
5
from ..libs import bearer_transport , get_jwt_strategy
6
6
from ..models import User
7
- from .constants import GOOGLE_USERINFO_URL
7
+
8
+ GOOGLE_USERINFO_URL = "https://www.googleapis.com/oauth2/v3/userinfo"
9
+ GOOGLE_SCOPE_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"
10
+ GOOGLE_SCOPE_EMAIL = "https://www.googleapis.com/auth/userinfo.email"
8
11
9
12
10
13
class GoogleAuthBackend (OAuthBackend ):
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
from httpx_oauth .clients .google import GoogleOAuth2
4
4
5
5
from ..libs import fastapi_users
6
- from .constants import GOOGLE_SCOPE_EMAIL , GOOGLE_SCOPE_PROFILE
7
- from .libs import auth_backend
6
+ from .backend import auth_backend
7
+
8
+ GOOGLE_SCOPE_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"
9
+ GOOGLE_SCOPE_EMAIL = "https://www.googleapis.com/auth/userinfo.email"
8
10
9
11
google_oauth_client = GoogleOAuth2 (
10
12
client_id = Configs .GOOGLE_CLIENT_ID ,
Original file line number Diff line number Diff line change 6
6
from ..exceptions import BadCredentialException
7
7
from ..libs import bearer_transport , get_jwt_strategy
8
8
from ..models import User
9
- from .constants import KAKAO_USERINFO_URL
9
+
10
+ KAKAO_USERINFO_URL = 'https://kapi.kakao.com/v2/user/me'
10
11
11
12
12
13
class KakaoAuthBackend (OAuthBackend ):
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
from ..libs import fastapi_users
4
4
from .client import KakaoOAuth2
5
- from .libs import auth_backend
5
+ from .backend import auth_backend
6
6
7
7
kakao_oauth_client = KakaoOAuth2 (
8
8
client_id = Configs .KAKAO_CLIENT_ID ,
You can’t perform that action at this time.
0 commit comments