Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 2.7 KB

README.md

File metadata and controls

36 lines (26 loc) · 2.7 KB

Swedish BankId Insomnia / Postman collection and instructions

Insomnia collection and other information on how to use Swedish Test BankId.

How to use

1 - Import collection into insomnia

image

2 - Setup the client certificate

Bankid uses two way mutual ssl connection where a client certificate is needed to communicate with bankid api endpoints. In production this certificate is replaced with a "Relying party certificate". image

3 - Disable certificate validation

Note Its possible to add this to the OS certificate store as well, but a bit unnessisary in test environment. In production environment however, you will need to either install in OS certificate store, disable verification in CURL or the http client library your application uses or pass the certificate to CURL. (i will add instructions on how to do it next time i build a bankid application)

image

4 - Authenticate and collect response

There are three requests prepared. Fill out personal number with your test bankid personal number and make sure you have your public ip adress filled out. Start with the auth request and save the orderRef. After authentication is completed on phone, use the orderref in the collect request. If you need to cancel, use the orderref in the cancel request. image

5 - Building an app