Skip to content

Commit 116fe42

Browse files
Docs update
Signed-off-by: Lukasz Gryglicki <lgryglicki@cncf.io>
1 parent 7477c8a commit 116fe42

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cla-backend/cla/routes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
"""

0 commit comments

Comments
 (0)