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 1313router = APIRouter ()
1414
1515_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 ' )
1717
1818
1919@router .get ('' , summary = '获取 Github 授权链接' )
Original file line number Diff line number Diff line change 1616 settings .OAUTH2_LINUX_DO_CLIENT_ID ,
1717 settings .OAUTH2_LINUX_DO_CLIENT_SECRET ,
1818)
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 ' )
2020
2121
2222@router .get ('' , summary = '获取 LinuxDo 授权链接' )
You can’t perform that action at this time.
0 commit comments