Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add a small section regarding future events, and a section regarding handling of incorrect messages

...

Table of Contents

1. Introduction

1.1 Audit events in the future

2. Integration Steps

2.1. Send us required information
2.2. Validate subscription
2.3. Receive audit events

...

By utilizing Cloudevents delivered to a Webhook over HTTPS, we adhere to standard protocols decoupled from specific libraries or SDKs. In this guide, we aim to provide you with the necessary information to set up a receiver capable of receiving audit events from our systems.

1.1 Audit events in the future

While the current integration only send audit events related to password reset, this will likely be expanded in the future with new messages. Some example use-cases for sending out audit events are;

  • App activation as OTP
  • Automatic block of BankID certificate based on anti-fraud signals
  • Biometric activation

2. Integration Steps

2.1. Send us required information

...

Two main things to note about the payload are the type and data fields.

3.1 Types

Type will have one of two values:

  • no.bankid.bass.audit.reissue.init.v1 Used for events sent right before the reissue command is sent. This signals the intent that the user will now perform a password reset, and the user can no longer abort.

  • no.bankid.bass.audit.reissue.completed.v1 Used for events sent right after the reissue command is sent. This signals that the command has been sent, and will specify if the command was successful or failed.

3.2 Data fields

Data will be a json with the following specification;

ParameterTypePossible valuesSample dataDescriptionRequired
sessionidString
7468bdd3-274b-4e2f-b7bb-65dad59ce8a9SessionID of the transaction. Is only valid for a single password reset.Yes
authenticationStringBIMBIMAuthentication method used to identify the userYes
actionStringREISSUEREISSUEActual operationYes
orderidString
1012-1667319077298OrderID of the BankIDYes
timeString
2022-10-26T14:15:51.978ZExecution timestamp(ISO8601) of the reissue command. Not set for events with status=BEGINNo
statusStringBEGIN, SUCCESS, FAILURESUCCESSStatus of the transaction.Yes
additionalInfoString

Details information if applicable to action, like error message in case of failureNo

3.3 Handle incorrect messages

While the messages are defined, typos and errors may occur on either end. As such, you need to have proper handling of errors related to the messages - such as, but not limited to, unknown type, unknown data fields, missing data fields, unknown data values etc.

If you discover incorrect messages, contact us for troubleshooting. Please include the full message and time of delivery.

4. Security

4.1. Webhook URL

...