Skip to main content
Single sign-on lets your organisation’s own identity provider decide who is a member of it in Ankra. People the provider admits become members when they sign in. People it stops admitting lose access on their own, without anyone removing them in Ankra. You set it up yourself under Organisation → Settings → Single sign-on. Ankra does not need to enable anything for you first. The whole setup in two minutes, from connecting the provider to what happens when someone leaves:

Who may sign in

Whoever is assigned to the Ankra application in your provider.

Which role they hold

The provider’s groups, mapped to Ankra roles. Optional.

When access ends

At the end of the re-verification window: 24 hours by default.

A sign-in through your provider


Before you start


Set it up

The Single sign-on page under Organisation settings: an Identity provider card showing Enabled, the issuer, client ID and client secret fields, the redirect URI to register with the provider, and Microsoft Entra ID hints

The Single sign-on settings page with a provider connected and enabled (example data)

1

Register Ankra with your identity provider

Open Organisation → Settings → Single sign-on and copy the value under Redirect URI to register with your provider. Then create an application for Ankra in your provider.
  1. In the Microsoft Entra admin centre, open App registrations → New registration.
  2. Under Supported account types, choose Accounts in this organizational directory only.
  3. Under Redirect URI, choose the Web platform and paste the redirect URI from Ankra.
  4. On the registration’s Overview, copy the Application (client) ID and the Directory (tenant) ID.
  5. Open Certificates & secrets → New client secret and copy the secret’s Value.
  6. Open Enterprise applications, select the application, and under Properties set Assignment required? to Yes. Then assign the people or groups who should have access under Users and groups.
Your issuer is https://login.microsoftonline.com/<tenant-id>/v2.0.
Without Assignment required, everyone in your tenant with an address on a verified domain can sign in, and joins your Ankra organisation while just-in-time membership is on. Removing someone from the assignment is also how their access ends, so it is the control this whole feature rests on.
Ankra reads the email claim, which Entra ID fills from the user’s email address. A user with no email address set in Entra ID cannot sign in.
2

Connect the provider in Ankra

Back on Single sign-on, under Identity provider, fill in the three fields and click Connect provider.The provider now shows as Connected, not enabled. Nobody can sign in through it yet.
To rotate the secret later, enter the new one and click Save provider. Changing the issuer or the client ID needs the secret again.
3

Verify your email domain

Under Email domains, enter the domain your members’ addresses use and click Add domain. Ankra shows a record to publish at your DNS provider:Publish it, then click Verify. DNS changes can take a few minutes to appear, and you can click Verify again until the domain shows Verified. A Sign-in link then appears under Email domains.Ankra accepts a sign-in through your provider only when the address is on a domain you have verified. That is what stops a provider from signing people in under addresses its owner does not control.
  • A verified domain covers exactly that domain. example.com does not cover eu.example.com; add and verify each one.
  • Public email providers such as gmail.com and outlook.com cannot be claimed.
  • A domain can be verified by one organisation only.
4

Enable single sign-on

Under Access policy, turn on Enable single sign-on. It can only be turned on once at least one domain is verified.
5

Sign in through the provider once

Open the sign-in link in a private browser window and sign in as someone assigned to the application. You should land in your organisation, and the Identity provider card should show the time under Last sign-in through the provider.Do this before you tell anyone else. It proves the provider works, and Ankra will not let you require single sign-on until one sign-in has succeeded.
Single sign-on is now on and optional: members can use it, and everyone can still sign in the way they did before. To make the provider the only way in, see Require single sign-on.

How members sign in

There are two ways to reach your provider:

The sign-in link

Shown under Email domains. It goes straight to your provider. Share it, or set it as the application’s home page URL in your provider so that the Ankra tile in your members’ application portal opens it.

The single sign-on page

A member enters their work email address and Ankra sends them to the provider that serves its domain.
Every sign-in through the provider has to be a fresh one: Ankra accepts it only when the provider authenticated the person within the last ten minutes. Ankra’s second factor is separate from your provider’s. A member who has one enrolled is still asked for it after the provider signs them in, and an organisation that requires MFA still requires each member to enrol.

Who becomes a member

Just-in-time membership is on by default: anyone the provider admits, with an address on a verified domain, becomes a member the first time they sign in. Turn it off under Access policy and only people you have invited can join through the provider. Someone who already has an Ankra account under the same address keeps it. The provider is connected to their existing account, so their API tokens, second factors and memberships of other organisations are unchanged. This needs the existing account’s address to have been verified; an account that never verified its address is refused, and the message says so.
While just-in-time membership is on, removing a governed member on the members page lasts only until their next sign-in: the provider still admits them, so they join again. To remove someone, remove them from the application in your provider.

Set roles from groups

By default the provider decides who is a member and you decide roles in Ankra. Add mappings under Group to role and the provider decides roles too.
1

Send the member's groups to Ankra

Your provider has to put the member’s groups in a groups claim on the ID token. Ankra requests the openid, profile and email scopes only, so the claim has to be released without an extra scope.
On the app registration, open Token configuration → Add groups claim and include it in the ID token. Choose Groups assigned to the application so the claim stays small.The claim carries group object IDs unless you configure the application to emit names.
2

Map groups to roles

Click Add mapping, enter a group exactly as the provider sends it - a name or an object ID - and pick Member, Admin or Read-only. Then click Save mappings.
3

Check it

Sign in as a member of a mapped group and look for the sso_member_role_synced entry in the audit log.
While at least one mapping exists, every sign-in through the provider sets the member’s role from the groups it sent: Mappings set the organisation-wide built-in role. Custom roles and roles assigned on a single cluster or cluster group are left as they are. Remove every mapping and roles are yours to set in Ankra again.

How access ends

Your provider does not tell Ankra when you remove someone, so access through single sign-on is a lease that each sign-in renews.

The life of a membership that single sign-on governs

A member is governed by single sign-on once they have signed in through the provider. Each of those sign-ins records that the provider vouched for them. When the latest one is older than the Re-verification window, Ankra suspends the membership. A suspended member loses everything at once: portal sessions, personal API tokens, and Kubernetes access granted through Ankra. They show as Suspended on the members page. Ankra checks every five minutes, and a suspension takes effect everywhere within about six minutes of the window ending. Signing in through the provider again restores the membership, with the role it had. Someone you removed from the application in your provider cannot complete that sign-in, so their access ends at the window. The window therefore sets two things: The default is 24 hours, and you can set anything from 1 to 720 hours under Access policy. A shorter window revokes faster and asks members to sign in more often. Two kinds of member are never suspended: break-glass members, and everyone while single sign-on is switched off for the organisation.
A suspended member’s personal API tokens stop working with them. Run pipelines and integrations on service tokens, which belong to the organisation and are not governed by single sign-on.

Require single sign-on

Under Access policy, set Require single sign-on to Required. Ankra allows this once single sign-on is enabled and someone has signed in through the provider.

Break-glass members

Break-glass members keep their other sign-in methods when single sign-on is required, and are never suspended. They are how you get back in when the provider is misconfigured or down.
  • The list can never be empty, and at least one break-glass member must be able to manage the organisation.
  • Whoever sets single sign-on to Required is added to the list.
  • Choose them under Break-glass members and click Save break-glass members.
Keep at least one break-glass member whose own sign-in you have tested. If the provider fails and no break-glass member can sign in, nobody in your organisation can reach the settings to turn single sign-on off, and you will need Ankra support to recover access.

Change or remove it

Removing single sign-on cannot be undone for accounts that existed only through your provider. They lose their sign-in, and their personal API tokens and Kubernetes access are revoked. Members who also have a password or social sign-in keep it.
A member who is still suspended after single sign-on is turned off or removed can be removed and invited again from the members page.

Audit trail

Every change and every membership decision is written to the organisation’s audit log: For an access review, filter the audit export to these actions: together they are the joiner, mover and leaver record for members the provider governs.

Limits


Troubleshooting

Entries are titled with the message Ankra shows, to an administrator on the settings page or to a member at sign-in.

Connecting a provider

Ankra could not get its sign-in service ready for single sign-on. Try again in a few minutes, and contact support if it keeps failing.
The issuer or the client was refused. Check that the issuer is the issuer URL itself and that its discovery document is reachable from the internet.
The organisation’s plan allows one member. Upgrade the plan under Billing, then connect the provider.

Verifying a domain

The record is not visible in DNS yet, or its name or value differs from what the page shows. Check it and click Verify again.
Another Ankra organisation has verified this domain, and a domain belongs to one organisation only. One of your own organisations may hold it.

Signing in

The provider signed the person in with an address outside your verified domains. Verify that domain, or correct the email address the provider sends.
The application does not release the email claim, or the user has no email address in the provider.
Just-in-time membership is off and the person has no invitation. Invite them, or turn just-in-time membership on.
Sign in to that account the way it was created and verify the address, then sign in through the provider again.
The provider admitted the person, but the organisation’s plan allows one member. The organisation needs to upgrade before anyone else can join.
The provider is connected but Enable single sign-on is off.
Shown on the single sign-on page when no enabled provider serves the address’s domain. Check the address, or that the domain is verified and single sign-on is enabled.
The provider did not authenticate the person just now. Close the window and start again from the sign-in link.
Start again from the sign-in link. If it repeats, contact support.
The provider has not vouched for them within the window. They are restored by signing in through the provider.

Requiring single sign-on

Nobody has signed in through the provider yet. Use the sign-in link once, then set Required.

Identity & Access Controls

The compliance view of sign-in, MFA, roles and tokens.

Roles & Access

What each role grants, and scoped and custom roles.

Service Tokens

Credentials for automation that do not depend on a person.

Audit Log

Review who was admitted, suspended and restored.