MaximeRainville\Auth0\Client
Simple extension of the base `Auth0\SDK\Auth0` client that can be called via the Injector.
You need to specify the following keys in your Environment file:
* AUTH0_DOMAIN
* AUTH0_CLIENT_ID
* AUTH0_CLIENT_SECRET
Those values can be retrieve from your Auth0 dashboard.
If you want to implement your own Auth0 client, you can add this to your YML config to reference your own class.
```YML
SilverStripe\Core\Injector\Injector:
MaximeRainville\Auth0\Client:
class:
YourOwn\Auth0\Client
```
Or if you need get an instance of the Auth0 client:
```php
\SilverStripe\Core\Injector\Injector::inst()->get(\MaximeRainville\Auth0\Client::class)
```
Synopsis
class Client
extends Auth0
{
- // methods
- public void __construct()
- protected array getDefaultSettings()
- protected string getDomain()
- protected void getRedirectUri()
Hierarchy
Extends
- Auth0\SDK\Auth0
Uses
- SilverStripe\Core\Injector\Injectable
Methods
protected
- getDefaultSettings() — Get the default Auth0 settings to pass to the base Auth0 client.
- getDomain() — Get the AUTH0 domain to use from the `AUTH0_DOMAIN` environement key.
- getRedirectUri()