SaWALi Controllers

Controllers - OpenidauthController

Controllers - OpenidauthController

Description

The OpenidauthController is responsible for communicating with an OpenID provider so that a user may be logged-in to SaWALi.

Properties

doauth (list ["index", "logout"])
A list of methods that require the user to be authenticated.
domain (string)
The full domain name of the website as defined in the configuration file's sawali.domain key.
logproc (string)
The absolute URI that calls the loginprocess method, which is required by the OpenID provider as a return path to the current website.

Methods

index
Shows the UsersBase home to an authenticated user by rendering "templates/users/home.html". Or redirects to login, if the user has not been authenticated.
login
Shows the user the log-in page by rendering "templates/users/login.openid.html".
logout
Clears an authenticated user's session and responds with a "goodbye" page.
dologin
Form action for the log-in page's form. Redirects to OpenID provider's own log-in page for its users.
loginprocess
A callback for the OpenID provider. On a successful log-in, creates a session for the user and redirects to index; on a failed log-in, responds with an error message.