Bigfork\SilverStripeOAuth\Client\Control\Controller
Synopsis
class Controller
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- private static string $url_segment = 'oauth';
- // methods
- protected string|null findBackUrl()
- protected string getReturnUrl()
- public string AbsoluteLink()
- public HTTPResponse authenticate()
- public HTTPResponse callback()
- protected array getHandlersForContext()
- public boolean validateState()
Hierarchy
Extends
- SilverStripe\Control\Controller
Tasks
Line | Task |
---|---|
91+ | allow whitelisting of scopes (per provider)? |
Members
private
- $allowed_actions
- $url_handlers
- $url_segment
Methods
protected
- findBackUrl() — Logic copied from \SilverStripe\Control\Controller::redirectBack()
- getHandlersForContext() — Get a list of handlers for the given context
- getReturnUrl() — Get the return URL previously stored in session
public
- AbsoluteLink()
- authenticate() — This takes parameters like the provider, scopes and callback url, builds an authentication url with the provider's site and then redirects to it
- callback() — The return endpoint after the user has authenticated with a provider
- validateState() — Validate the request's state against the one stored in session