class DefaultCase extends BankIDCasePluginBase implements ContainerFactoryPluginInterface

Plugin implementation of the 'default' BankID case.

Properties

protected array $private

The private data.

from  BankIDCasePluginBase

Methods

string
label()

Returns the translated plugin label.

void
setPrivateData(array $private_data)

Set the private data.

array
getRequirements()

Get the requirements for the order.

string
getHiddenData()

Get the hidden data for the order.

string
getVisibleData()

Get the visible data for the order.

string
getVisibleDataFormat()

Get the visible data format for the order.

orderCompleted(array $response)

Called when the authentication is complete.

orderCancelled(array $response, string $order_ref)

Called when the order is cancelled.

orderFailed(array $response)

Called when the order fails.

__construct(array $configuration, $plugin_id, $plugin_definition, AuthmapInterface $authmap, ExternalAuthInterface $externalAuth, ConfigFactoryInterface $config_factory, IntegrationManager $integrationManager)

No description

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

{@inheritDoc}

Details

string label()

Returns the translated plugin label.

Return Value

string

void setPrivateData(array $private_data)

Set the private data.

Parameters

array $private_data

The private data.

Return Value

void

array getRequirements()

Get the requirements for the order.

Return Value

array

An array of requirements for the order.

string getHiddenData()

Get the hidden data for the order.

Return Value

string

The hidden data for the order.

string getVisibleData()

Get the visible data for the order.

Return Value

string

The visible data for the order.

string getVisibleDataFormat()

Get the visible data format for the order.

Return Value

string

The visible data format for the order, 'plaintext' or 'simpleMarkdown'.

at line 80
BankIDOrderDoneData orderCompleted(array $response)

Called when the authentication is complete.

This method can be responsible, for example, for creating a user account or logging in an existing user based on the response from the BankID service.

Parameters

array $response

The authentication complete response from BankID.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.

BankIDOrderDoneData orderCancelled(array $response, string $order_ref)

Called when the order is cancelled.

Parameters

array $response

The response from the BankID service.

string $order_ref

The order reference.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.

BankIDOrderDoneData orderFailed(array $response)

Called when the order fails.

Parameters

array $response

The response from the BankID service.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.

at line 43
__construct(array $configuration, $plugin_id, $plugin_definition, AuthmapInterface $authmap, ExternalAuthInterface $externalAuth, ConfigFactoryInterface $config_factory, IntegrationManager $integrationManager)

No description

Parameters

array $configuration
$plugin_id
$plugin_definition
AuthmapInterface $authmap
ExternalAuthInterface $externalAuth
ConfigFactoryInterface $config_factory
IntegrationManager $integrationManager

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

{@inheritDoc}

Parameters

ContainerInterface $container
array $configuration
$plugin_id
$plugin_definition