Authentication
Before using the IDmission WebSDK, you will need to obtain an API key. New customers receive their API credentials via email. If you haven’t received them, reach out to support@idmission.com.
To test that your credentials are valid:
curl -s -H "Content-Type: application/json" \
-d '{"api_key_id": "your-api-key-id", "api_key_secret": "your-api-secret"}' \
https://portal-api.idmission.com/portal.sessions.v1.SessionsService/CreateSession
Prior to initializing the WebSDK on the client, you should generate a session on your server using these credentials. Be careful not to leak them on the client side! The generated session id is safe to pass to the client, but the secrets used to generate them are not. If you have inadvertently leaked your credentials, react out to support@idmission.com to rotate them.
If you are using NodeJS, check out our auth client for server-side JavaScript.