Skip to content

Add SwissID login

SwissID is a secure digital identity solution developed in Switzerland, enabling users to access various online services through a single login. It is provided by SwissSign AG, a subsidiary of Swiss Post, and is recognized by the Swiss federal government as a trust service provider

Register Asgardeo on SwissID

  1. Contact SwissID in order to become a partner.
  2. Once that process is done, you need to provide following as redirection URI.

    • Authorization callback URL
      https://api.asgardeo.io/t/{organization_name}/commonauth
      
  3. You will get the Client ID and Client Secret from the SwissID application.

  4. Take note of the Client ID and Client secret.

Register the SwissID

Now, let's register the SwissID IdP in Asgardeo.

  1. On the Asgardeo Console, go to Connections.
  2. Click New Connections and select Standard-based Idp.
  3. Click Create.
  4. Enter a unique name for your SwissID connection. Add SwissConnect in Asgardeo
  5. Enter the following details and click Finish:

    Parameter Description
    Client ID The client ID obtained from SwissID.
    Client secret The client secret obtained from SwissID.
    Authorised redirect URL Provide the Authorised redirect URL of SwissID connection. For example https://<swissid_env>/idp/oauth2/authorize.
    Token Endpoint URL Provide the Token endpoint URL of SwissID. For example https://<swissid_env>/api/v1/token.

    Enter SwissID's Endpoint details Asgardeo 6. Click Next
    7. You can enter JWKS endpoint URL of SwissID or upload the public certificate. This step is not mandatory while creating the connection.
    JWKS endpoint URL Provide the JWKS endpoint URL of your SwissID organization. For example https://<swissid_env>/idp/oauth2/connect/jwk_uri.
    8. Click Finish.

Enable SwissID login

Before you begin

You need to register an application with Asgardeo. You can register your own application or use one of the sample applications provided.

  1. On the Asgardeo Console, go to Applications.
  2. Select your application, go to the Login Flow tab and add SwissID login from your preferred editor:

    1. Click Add Sign In Option to add a new authenticator to the first step.

    2. Select the SwissID connection.

    3. Click Confirm to add login with SwissID to the sign-in flow.

    Configuring SwissID in Asgardeo using the Visual Editor

  3. Click Update to save your changes.

Try it out

Follow the steps given below.

  1. Access the application URL.

  2. Click Login to open the Asgardeo login page.

  3. On the Asgardeo login page, Sign in with SwissID.

    Login with SwissID

  4. Log in to SwissID with an existing eID.

Configure connection

To learn more about other configurations available for the connection, refer to the add federated login documentation.