class DefaultIntegration extends IntegrationBase

Constants

PROVIDER_NAME

Properties

protected ExternalAuthInterface $externalAuth

The externalauth service.

from  IntegrationBase

Methods

__construct(array $configuration, $plugin_id, $plugin_definition, ExternalAuthInterface $externalAuth)

Constructs a new \Drupal\bankid\IntegrationBase object.

static 
create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

string
getLabel()

Provide the Integration label.

UserInterface|null
getUser(array $response)

Get user from a BankID JSON response.

UserInterface|null
createUser(array $response)

Create a user from a BankID JSON response.

string
hash(string $str)

Get the hash of a string.

Details

in IntegrationBase at line 34
__construct(array $configuration, $plugin_id, $plugin_definition, ExternalAuthInterface $externalAuth)

Constructs a new \Drupal\bankid\IntegrationBase object.

Parameters

array $configuration
$plugin_id
$plugin_definition
ExternalAuthInterface $externalAuth

in IntegrationBase at line 42
static create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

Parameters

ContainerInterface $container
array $configuration
$plugin_id
$plugin_definition

in IntegrationBase at line 54
string getLabel()

Provide the Integration label.

Return Value

string

A string label of the Integration.

at line 25
UserInterface|null getUser(array $response)

Get user from a BankID JSON response.

Parameters

array $response

The response from the BankID service.

Return Value

UserInterface|null

The user object.

at line 34
UserInterface|null createUser(array $response)

Create a user from a BankID JSON response.

Parameters

array $response

The response from the BankID service.

Return Value

UserInterface|null

The user object.

in IntegrationBase at line 71
string hash(string $str)

Get the hash of a string.

Parameters

string $str

The string to hash.

Return Value

string

The hashed string.