...
The successful response is a redirect to <RedirectURL> with an extra request parameter parameters to hold (1) an authentication status indicator (OK) and (2) the session token:
Code Block |
---|
HTTP/1.1 302 Moved Temporarily ... Location: <RedirectURL>?status=OK&sessionToken=<SessionToken><sessionToken> ... |
If successful, but if the user has not yet accepted the Synapse Terms of Use (ToU), then the result is:
Code Block |
---|
HTTP/1.1 302 Moved Temporarily ... Location: <RedirectURL>?sessionTokenstatus=TermsOfUseAcceptanceRequired ... |
...
Code Block |
---|
POST https://www.sagebase.org/Portal/openid?OPEN_ID_PROVIDER=GOOGLE&acceptsTermsOfUse=true&RETURN_TO_URL=<RedirectURL>
|
If authentication is unsuccessful for a reason other than a missing terms of use agreement then the result is:
Code Block |
---|
HTTP/1.1 302 Moved Temporarily ... Location: <RedirectURL>?status=OpenIDError ... |
Sample commands, issued from cURL:
...