Create users in Keycloak
To interact with your NPL application, you need to create users who have permission to trigger actions like creating protocols and executing permissions. NOUMENA Cloud applications contain a keycloak instance by default. Accessing other identity and access management services can be configured.
Understanding Identity Management
Keycloak provides:
- User registration and authentication
- OAuth2/OpenID Connect for secure API access
- Federation with external identity providers
Creating Test Users
Follow these steps to create two test users (Alice and Bob) for your application:
-
In the
Services
tab of your application, find Keycloak and click theVisit
link to open the Keycloak admin console in a new tab -
Copy the Keycloak admin credentials from the
Show credentials
section in the NOUMENA CloudServices
tab -
Once logged in to the Keycloak admin console, select your application name as the realm in the top-left dropdown
-
Navigate to the
Clients
tab in the left sidebar and open the client with your application name -
Verify that 'Standard flow' is enabled under
Capability config
-
Return to the NOUMENA Cloud portal, go to the
Overview
tab, and copy the Engine API URL -
Back in the Keycloak client settings, add the Engine API URL to the 'Valid redirect URIs' field
This whitelists the engine as a valid URI pattern for browser redirects after successful login
-
Add "+" (without quotes) to both
Valid post logout redirect URIs
andWeb origins
fields -
Click
Save
-
Navigate to the
Users
tab in the left sidebar and clickAdd User
-
In the user's
Credentials
tab, clickSet password
-
Repeat steps 10-12 to create a second user with username
bob
User Authorization
With these users created, they can now:
- Authenticate to your application
- Create and interact with protocol instances
- Execute permissions based on their attributes
Next Steps
Now that you have users set up, continue to make your first API calls to interact with your NPL application.