Before you start

Legal setup

  • Create a legal entity profile at eParaksts.lv
  • Submit a service request for:
    • testing environment
    • and/or production (e-Identity platform)
  • Sign the service agreement
  • After signing, you will receive access credentials
šŸ’”

One test environment contract can be used for multiple integrations

šŸ’” Production access requires a contract with the end client (system owner)


Technical setup

  • Testing environment: https://eidas-demo.eparaksts.lv
  • Production environment: https://eidas.eparaksts.lv
  • Authentication: OAuth 2.0 Authorization Code flow

Basic flow

  1. Redirect user to authentication:

    • scope: urn:lvrtc:fpeil:aa
    • identity provider: lvrtc-eipsign-as
  2. Receive authorization code

  3. Exchange code for access token

    POST /trustedx-authserver/oauth/lvrtc-eipsign-as/token
    
  4. Retrieve user information

    GET /trustedx-resources/openid/v1/users/me