Skip to content

Insomnia and Postman collections for Swedish BankId and documentation on how to use

License

Notifications You must be signed in to change notification settings

Patrikgrinsvall/SwedishBankid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Insomnia and Postman collections for Swedish BankId and documentation on how to use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published