Update comment to call-out different flows.

pull/7186/head
Patrick Cloke 2020-04-02 10:25:47 -04:00
parent f68df97edd
commit 654db21db2
1 changed files with 8 additions and 4 deletions

View File

@ -173,10 +173,14 @@ class CasHandler:
) -> None: ) -> None:
""" """
Called once the user has successfully authenticated with the SSO. Called once the user has successfully authenticated with the SSO.
validates a CAS ticket sent by the client and completes the auth process. Validates a CAS ticket sent by the client and completes the auth process.
Registers the user if necessary, and then returns a redirect (with If the user interactive authentication session is provided, marks the
a login token) to the client. UI Auth session as complete, then returns an HTML page notifying the
user they are done.
Otherwise, this registers the user if necessary, and then returns a
redirect (with a login token) to the client.
Args: Args:
request: the incoming request from the browser. We'll request: the incoming request from the browser. We'll
@ -187,7 +191,7 @@ class CasHandler:
client_redirect_url: the redirectUrl parameter from the `/cas/ticket` HTTP request, if given. client_redirect_url: the redirectUrl parameter from the `/cas/ticket` HTTP request, if given.
This should be the same as the redirectUrl from the original `/login/sso/redirect` request. This should be the same as the redirectUrl from the original `/login/sso/redirect` request.
session_id: The session_id parameter from the `/cas/ticket` HTTP request, if given. session: The session parameter from the `/cas/ticket` HTTP request, if given.
This should be the UI Auth session id. This should be the UI Auth session id.
""" """
args = {} args = {}