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:
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"
- Example:
Receive Token: Upon successful authentication request, the response will contain an access token.
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:
- Log in to the user management portal using your credentials.
- Navigate to the system users section.
- Click on the "Change roles" action for the user to assign roles to.
- Assign appropriate roles to the user based on responsibilities and permissions.