Access Control

Authentication and Authorization

Sign in with a username and password, Microsoft or SSO, and understand what each role can access.

How Sign-In Works

Apiruler Manager delegates authentication to Keycloak. Three sign-in paths are supported: username and password, Microsoft through the connected identity provider, and automatic sign-in when an existing Keycloak browser session is detected.

After a successful sign-in, the access token, refresh token and basic user information are stored in the browser and refreshed automatically before they expire.

Session storage

Tokens and user data are stored in the browser under accessToken, refreshToken and userData. Clearing them, or clearing site data, signs the user out.

Sign In with Username and Password

Navigation pathLogin page
  1. Open Apiruler Manager. If no active session is found, the login page is shown automatically.
  2. Enter Username and Password, then select the sign-in button.
  3. If the credentials are rejected, an inline error is shown next to the Username field.
  4. After a successful sign-in, the app opens the page originally requested, or the home page.

Sign In with Microsoft

  1. On the login page, select Sign in with Microsoft.
  2. Complete the sign-in on the Microsoft identity provider page.
  3. After approval, the browser returns to Apiruler Manager already signed in.
Requires provider configuration

This option only works when a Microsoft identity provider is configured in the connected Keycloak realm.

Change Your Password

Navigation pathUser menuChange Password
  1. Select the account menu in the top right corner.
  2. Select Change Password.
  3. Complete the password update on the Keycloak page that opens.
  4. After saving, the browser returns to the page you were on.
Only available for password sign-in

Change Password is shown only when the current session was started with a username and password. Sessions started with Microsoft or SSO manage the password on the identity provider side.

Roles and Permissions

Every account has one of two roles. Admin can access every module and action. Client can access every module and action except a small set of administrator-only pages.

RoleAccess
AdminFull access to every module, including Invite User and Import Cloudflare.
ClientFull access to every module except Invite User and Import Cloudflare.

Sign Out

  1. Select the account menu in the top right corner.
  2. Select Sign Out.
  3. The local session is cleared and, when applicable, the identity provider session ends as well.

Authentication Troubleshooting

ProblemLikely causeWhat to do
Signing in with valid credentials fails.The Keycloak connection settings are incorrect or the account is disabled.Verify the configured Keycloak URL, realm and client ID, and check the account status in Keycloak.
The Sign in with Microsoft button does nothing useful.No Microsoft identity provider is configured in the connected Keycloak realm.Configure the Microsoft identity provider in Keycloak before using this option.
Change Password is not shown in the user menu.The current session was started with Microsoft or SSO, not a username and password.Sign out and sign in again with a username and password, or change the password on the identity provider directly.
The app signs the user out unexpectedly.The stored access or refresh token expired or was removed from the browser.Sign in again and confirm the browser allows local storage for the application.

Need a hand?

If you get stuck during installation or configuration, our team is ready to help.