interface BankIDCaseInterface

Interface for BankID Case plugins.

Methods

string
label()

Returns the translated plugin label.

void
setPrivateData(array $private_data)

Set the private data.

getBankIdRequestData()

Get the BankID request data.

orderCompleted(BankIDResponse $response)

Called when the authentication is complete.

orderCancelled(BankIDResponse $response)

Called when the order is cancelled.

orderFailed(BankIDResponse $response)

Called when the order fails.

Details

at line 18
string label()

Returns the translated plugin label.

Return Value

string

at line 26
void setPrivateData(array $private_data)

Set the private data.

Parameters

array $private_data

The private data.

Return Value

void

at line 34
BankIDRequestDataInterface getBankIdRequestData()

Get the BankID request data.

Return Value

BankIDRequestDataInterface

The BankID request data.

at line 52
BankIDOrderDoneData orderCompleted(BankIDResponse $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

BankIDResponse $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.

Exceptions

BankIDException

at line 64
BankIDOrderDoneData orderCancelled(BankIDResponse $response)

Called when the order is cancelled.

Parameters

BankIDResponse $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 76
BankIDOrderDoneData orderFailed(BankIDResponse $response)

Called when the order fails.

Parameters

BankIDResponse $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.