You can log in to the Authorization server as a user with the necessary privileges using both the OpenEdge Command Center server and Authorization server REST APIs.

To log in to the Authorization server:

  1. Open a web browser and access the Swagger UI of the OpenEdge Command Center server by navigating to https://<hostname>:<port>/openapi/
  2. Locate the Authenticate your session API with endpoint POST-/api/auth/login and expand it.
  3. To enable the text area, click Try it out.
  4. In Request body, type admin as username and password details in JSON format:
    {
      "userName": "admin"
      "password": "<password>"
    }
    
  5. Click Execute. If authentication is successful, you see a JWT token in JSON format. For example:
    {
      "idToken": "eyJhbGciOiJIUzI1NigfdnR5cCI6IkpXVCJ9.
    eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNTk1NDg2ODY3fQ.
    PZDjDXkQvpmSHWYXpt8JcYGeqEWX_8ehZonMY2aFHaa",
      "expiresIn": 240
    }
  6. Open another web browser and access the Swagger UI of the Authorization server by navigating to : https://<hostname>:<port>/openapi-authz/
  7. Click Authorize.
  8. In the Available authorizations dialog box, perform the following steps:
    1. In the Value field, enter the JWT token that you obtained in Step 5.
    2. Click Authorize and Close.
    After successful authorization, you can create users, assign roles, and remove roles in the Authorization server.