File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1834,7 +1834,10 @@ def user_from_session(request, response):
18341834 "version": "v1"
18351835 }
18361836 Can also return 302 redirect (if redirect mode is set redirect=1|yes|true)
1837- Can also return 202 redirect_url for GitHub OAuth2 if redirect mode is not set (redirect=0|no|false)
1837+ Can also return 202 redirect_url for GitHub OAuth2 if redirect mode is not set (redirect=0|no|false) with payload:
1838+ {
1839+ "redirect_url": "https://github.com/login/oauth/authorize?response_type=code&client_id=38f6d46ff92b7ed04071&redirect_uri=abc&scope=user%3Aemail&state=VCshZQtMs0hPMw6XuMBBZODVaWAxXX"
1840+ }
18381841 Can also return 404 on OAuth2 errors or missing redirect_url when no session present
18391842 return_url should ideally be "CLA contributor console" URL + /v2/user-from-session, Github will add "?state=xyz&code=xyz"
18401843 """
You can’t perform that action at this time.
0 commit comments