Skip to main content

Introduction

IDkollen provides a JSON/REST API for authenticating and signing with Freja eID.

The API is only accessible with SSL and a unique key provided by IDkollen. The key is private and should not be shared with a third party. The API should only be called from a server application, not directly from the client.

When signing up you will receive API keys for IDKollens staging and live environment.

EnvironmentURLCallback IPFreja eID environment
Livehttps://api.idkollen.se/13.53.114.219
13.48.243.11
Live
Staginghttps://stgapi.idkollen.se/13.53.56.116
13.53.92.159
Test

Usage flow

  1. The user initiates an authentication via the partner's interface.
  2. The partner calls IDkollen's API to initiate an authentication.
  3. IDkollen sends response to partner with information about the initiated authentication.
  4. The answer from IDkollen is displayed to the user by the partner.
  5. The user identifies him- or herself with Freja eID.
  6. IDkollen sends the result to the partners callback endpoint.

Staging environment (test)

Please note that the Staging environment only works with Test Freja eID. To get a Freja eID for testing, see the following page under the heading "Test Mode": https://frejaeid.freshdesk.com/support/solutions/articles/77000186303

Authentication

To initiate requests to the API a secret key is needed. To request a secret key, contact support@idkollen.se. All API endpoints are authenticated using Basic Auth, where the "username" is the API key (account ID) and the "password" is the secret key.

Authorization: Basic ${ base64(accountId + ':' + secretKey) }

More information

For more information about how the Freja eID API works in general, please refer to the Freja eID Developers’ Section (https://org.frejaeid.com/en/developers-section/).

If you have any questions, please contact us at support@idkollen.se