Skip to main content

Authentication

To be able to access the APIs, you first need to authenticate and obtain an access token.

Authentication Steps

To authenticate and obtain a token for accessing the APIs, follow these steps:

  1. Send Authentication Request: Make a POST request to the IAM token endpoint with your credentials.

    • Example:
      curl -X POST \
      https://iam.iot.telenor.com/auth/realms/telenor-iot/protocol/openid-connect/token \
      -d "client_id=your-client-id" \
      -d "client_secret=your-client-secret" \
      -d "scope=openid" \
      -d "grant_type=client_credentials"
  2. Receive Token: Upon successful authentication request, the response will contain an access token.

  3. Use Token: Include the obtained token in the Authorization header of subsequent requests to access protected resources.

Role Assignment

To access certain resources and perform specific actions, roles must be assigned to the system user. This is typically managed through the user management portal. For role assignment:

  1. Log in to the user management portal using your credentials.
  2. Navigate to the system users section.
  3. Click on the "Change roles" action for the user to assign roles to.
  4. Assign appropriate roles to the user based on responsibilities and permissions.