\OpauthLoginForm
OpauthLoginForm The form presented to users for signing in with an Opauth strategy.
Not a form, rather a gateway that works by taking enabled strategies and
displaying a button to start the OAuth process with that strategy provider.
- Author: Will Morgan <@willmorgan>
- Copyright: Copyright (c) 2013, Better Brief LLP
Synopsis
class OpauthLoginForm
extends LoginForm
{
- // members
- private boolean $_strategiesDefined = false;
- protected string $authenticator_class = 'OpauthAuthenticator';
- private static array $allowed_actions = ;
- // methods
- public void __construct()
- public void configureBackURL()
- public void httpSubmission()
- protected void defineStrategyHandlers()
- protected FieldList getFields()
- protected FieldList getActions()
- public array getStrategies()
- public ViewableData handleStrategy()
- public string getAuthenticatorName()
Hierarchy
Extends
- LoginForm
Members
private
- $_strategiesDefined
- $allowed_actions
protected
- $authenticator_class
Methods
protected
- defineStrategyHandlers() — Channel several unknown strategies in to one handler
- getActions() — Provide an action button to be clicked per strategy
- getFields() — Ensure AuthenticationMethod is set to tell Security which form to process Very important for multi authenticator form setups.
public
- __construct()
- configureBackURL() — Handle any backURL. Uses sessions as state gets lost through OAuth flow.
- getAuthenticatorName() — The authenticator name, used in templates
- getStrategies()
- handleStrategy() — Global endpoint for handleStrategy - all strategy actions point here.
- httpSubmission() — Override httpSubmission so we definitely have strategy handlers.