Sign-in for end users
Nobody sees anything in an app built on Sovyn without signing in. There are two kinds of people who sign in:
- Members of your team always sign in with their Sovyn login. You do not have to set anything up for them.
- People outside your team, the end users of the app, need an own login. You choose how they sign in.
Who may sign in
Section titled “Who may sign in”Owners, admins and developers of your team always reach both environments of every app, production and development.
For members with the role User, you set an access level per app:
| Access level | User’s home page | Sign in to production | Sign in to development |
|---|---|---|---|
| No access | app is missing | refused | refused |
| Production only | Open | yes | refused |
| Production + development | Open and Test version | yes | yes |
A user sees only the apps they may open on their home page, and the link to development (Test version) only with Production + development. Knowing the address of development does not get anyone in without that level.
How to set it (owners and admins; developers see the setting but cannot change it):
-
Open the app, Access tab, section Who may use the app?
-
Choose the Default for users. It applies to every user without their own setting, including those invited later. No access locks the app for all users except those you let in one by one; Production only opens it to all users.
-
In the table, change the Access of single users, for example to lock one user out of an otherwise open app or to show development to a department. Default puts a user back on the app’s default.
Less access applies at once. When you reduce access, the console asks first and signs those affected out of the app, or only out of development, on their next click. More access applies with the next sign-in; the role in the app stays.
New apps start with your team’s default. Owners and admins set it under Team on the left, New apps: default for users. It applies only to apps created afterwards; existing apps keep their setting.
When you invite a user, you choose right away which apps they get. Someone removed from the team or given another role loses their access levels; if you invite them again, they start without any.
Sign-in methods
Section titled “Sign-in methods”An app can offer these methods to people outside the team:
- Magic link: the person gets an email with a link and a 6-digit code. Only invited people can sign in this way; nobody can sign up with it on their own. Link and code are valid for 15 minutes and can be used once. A new email replaces the previous one.
- Company login (OIDC): the person signs in with the account of your own company, for example Microsoft Entra ID (Microsoft 365), FusionAuth or Keycloak.
- Google, Microsoft and GitHub: the person signs in with an account they already have there.
Your AI assistant adds the methods to the app. That alone lets nobody in: each method only works once someone of your team has switched it on in the Sovyn console, separately for Development and Production.
Switch a method on
Section titled “Switch a method on”Only owners and admins of the team can do this. Everyone else who builds can look at the page.
-
Open Apps in the console and choose the app, or follow the link your assistant gave you.
-
Open the Access tab, section Sign-in methods. It shows one card per environment, with Sovyn login for team members and a switch per method your assistant added.
-
For Magic link, flip the switch and click Enable. Done.
-
For the company login, Google, Microsoft or GitHub, first click Credentials and enter what your provider issued (see below). Then flip the switch and click Enable.
Credentials of a provider
Section titled “Credentials of a provider”For a method with a provider, you create an OAuth app at that provider. It connects the provider to your app.
-
In the console, click Credentials next to the method. The dialog shows the Redirect URIs of this environment. Copy them.
-
At the provider, create the OAuth app and enter the redirect URI there. The provider then issues a Client ID and a Client secret.
-
Back in the console, enter Client ID and Client secret. For the company login also enter the Issuer, the
https://address of your provider, and a Display name: it is shown on the button of the sign-in page, “Sign in with …”. Click Save.
Sovyn never shows the client secret again. If you leave the field empty when you save again, the stored one stays. To remove a provider, switch the method off first, then click Remove provider.
Where to find the values
Section titled “Where to find the values”The Credentials dialog in the console shows the same steps, for the company login matching the issuer you entered.
-
Company login (OIDC), any provider that supports OpenID Connect. For every provider:
- Create a confidential client (with a client secret) for the authorization code flow. Sovyn uses PKCE.
- Scopes
openid,emailandprofile. The ID token must carry the address and report it as verified (email_verified), otherwise no new person gets in. - The ID token must be signed with an RSA or EC key (RS256, ES256 …). Sovyn refuses HS256 with the client secret.
- The issuer is the address that serves
/.well-known/openid-configuration, public overhttps://and without redirects.
Per provider:
- Entra ID (Microsoft 365): Microsoft Entra admin center >
App registrations > New registration, account type Accounts in
this organizational directory only. The redirect URI goes under
Authentication, platform Web (not Single-page application).
Under Token configuration > Add optional claim, token type
ID, add
emailandxms_edov: Entra has noemail_verified;xms_edovreports that the address’s domain is verified in the tenant. The client ID is the Application (client) ID, the client secret is the Value of a new secret under Certificates & secrets (not the Secret ID; the value is shown only once). The issuer ishttps://login.microsoftonline.com/<tenant>/v2.0. - FusionAuth: Applications > add an application. The OAuth tab
takes the redirect URI under Authorized redirect URLs and shows client
ID and client secret. On the JWT tab, enable JWT and set Id Token
signing key to an RSA or EC key (Settings > Key Master). The
default is HS256, and sign-in fails with it. The issuer is the address of
your instance,
https://<fusionauth-host>. - Keycloak: Clients > Create client, with Client
authentication and Standard flow. The redirect URI goes under
Valid redirect URIs; the client secret is under Credentials.
Users need Email verified. The issuer is
https://<keycloak-host>/realms/<realm>.
-
Google: Google Cloud console > APIs & Services > Credentials > Create credentials > OAuth client ID, type Web application. The redirect URI goes under Authorized redirect URIs; the dialog shows client ID and client secret. Set the OAuth consent screen to External and publish the app: in testing mode only listed test users get in.
-
Microsoft: Microsoft Entra admin center > App registrations > New registration, account type Accounts in any organizational directory and personal Microsoft accounts. With “this directory only” Microsoft refuses with
AADSTS50194. Redirect URI (platform Web), optional claimsemailandxms_edov, client ID and client secret as for Entra ID above. This method admits every Microsoft account, personal and work; but a new person only gets in if the address’s domain is verified in their tenant. To admit only your own company, use the company login with Entra ID instead. -
GitHub: GitHub > Settings > Developer settings > OAuth Apps > New OAuth App (for an organization, in its settings). The redirect URI is the Authorization callback URL. The page of the app shows the Client ID and generates a client secret. Only people with a verified email address at GitHub get in.
The console has a template for the issuer. Replace the placeholders in angle brackets with your values.
When sign-in fails
Section titled “When sign-in fails”- “The sign-in provider cannot be reached right now” although the provider is up: usually Sovyn refuses the ID token because it is signed with HS256 (FusionAuth’s default), or the provider refuses the code exchange because the redirect URI is under the wrong platform (Entra: Web, not Single-page application) or the client secret is wrong.
- “The sign-in provider did not confirm your email address”: the ID
token does not report the address as verified. With Entra and Microsoft,
the optional claim
xms_edovis usually missing. - Error
AADSTS50194in the address bar: the Microsoft method needs an app registration for accounts in any directory. For your own tenant only, use the company login with Entra ID.
Who gets in
Section titled “Who gets in”By default, only invited people get in, with every method.
Open sign-up lets in anyone the provider lets through, without an invitation. Your assistant sets it up in the app, and an owner or admin confirms it separately in the console: Open sign-up under the methods. It works only with a method that has a provider (company login, Google, Microsoft or GitHub). People who sign up this way get the default role of the app. Anyone with an account at that provider can sign up, so use it only when you really want that. By magic link, still only invited people get in.
Either way, the provider must confirm that the email address is verified.
Accounts are never merged by email address. An invited person who has never signed in is bound to the account they first sign in with at a provider. Someone who already signed in another way, or a team member, is refused when they come through a provider with the same address for the first time.
Invitations and roles
Section titled “Invitations and roles”An app can have roles, for example tenant and manager. Every end user
has exactly one role; without one, it is the default role of the app.
- End users invite each other inside the app. Your assistant decides with you which role may invite which other roles. An invitation creates the end user with their role and sends them an email with link and code. Inviting needs the magic link switched on in that environment.
- The same rule decides whom someone may disable. A disabled end user is signed out at once and cannot sign in again by any method until someone enables them.
- You can delete a disabled end user in the console, Access tab, section End users (owners and admins). This deletes the person, their sign-in methods, sessions and pending emails with link and code; it cannot be undone. Afterwards you can invite the same address again. The app’s entries stay, including the ones the person owned, and the files attached to them. References to the person are cleared; a required field keeps their ID, which then points to nobody. Backups contain the person until they expire. Personal details inside the entries themselves are yours to remove as the app’s operator.
- Someone blocked at your company login keeps their session in the app until it runs out. To end their access at once, disable them in the app.
- Team members get their role in the app in the console, Access tab, section App roles, per environment. A change applies with the next request, without signing in again. Owners and admins can change it.
Roles never come from the provider; only invitations, the console and the default role set them.
The sign-in page
Section titled “The sign-in page”Sovyn provides the sign-in page; your app does not need its own. Give people outside your team this address:
https://<address of your app>/api/auth/sign-inIt offers the Sovyn login for team members, a button per switched-on
provider and, with the magic link on, a field to request a new email and a
form to sign in with address and code (useful when the email is read on
another device). If something did not work, the page says why. Once an own
login is switched on, everyone without a session lands there, whatever
address of the app they open. After signing in, every way leads back to
that address, including query and fragment (#…), so deep links you send
out keep working; only after a sign-in a provider refused does it lead to
the start page. A link to the sign-in page can name the address itself:
/api/auth/sign-in?returnTo=/orders?open=1; with a session already, the
page leads there straight away.
Emails and pages of the sign-in are in English unless your assistant sets the app’s language to German.
Development and production
Section titled “Development and production”- Development sends no emails. Your assistant reads link and code of an invitation from the run log and can test the sign-in itself.
- Production sends emails from
noreply@sovyn.site. Each invitation and sign-in email counts against the monthly email quota of the plan.
Every end user of the own login who signs in or uses a session in a month counts once as an active user against the monthly quota of the plan, per environment. Team members with the Sovyn login do not count. When the quota is reached, people who were already active this month stay in; new ones get in again when the counter resets.