File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
backend/plugin/oauth2/api/v1 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
router = APIRouter ()
14
14
15
15
_github_client = GitHubOAuth20 (settings .OAUTH2_GITHUB_CLIENT_ID , settings .OAUTH2_GITHUB_CLIENT_SECRET )
16
- _github_oauth2 = FastAPIOAuth20 (_github_client , redirect_route_name = 'github_login ' )
16
+ _github_oauth2 = FastAPIOAuth20 (_github_client , redirect_route_name = 'github_oauth2_callback ' )
17
17
18
18
19
19
@router .get ('' , summary = '获取 Github 授权链接' )
Original file line number Diff line number Diff line change 16
16
settings .OAUTH2_LINUX_DO_CLIENT_ID ,
17
17
settings .OAUTH2_LINUX_DO_CLIENT_SECRET ,
18
18
)
19
- _linux_do_oauth2 = FastAPIOAuth20 (_linux_do_client , redirect_route_name = 'linux_do_login ' )
19
+ _linux_do_oauth2 = FastAPIOAuth20 (_linux_do_client , redirect_route_name = 'linux_do_oauth2_callback ' )
20
20
21
21
22
22
@router .get ('' , summary = '获取 LinuxDo 授权链接' )
You can’t perform that action at this time.
0 commit comments