mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 06:58:54 +00:00
docs: remove old pages and make sure overview pages are used (#11592)
Summary - refreshed multiple concept, guide, SDK example, policy, and troubleshooting pages to match the latest structure - synchronized `apps/docs/lib/sidebar-data.ts` and `apps/docs/redirects.json` with the new layout so navigation and URL rewrites stay consistent --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: fcoppede <[email protected]>
This commit is contained in:
co-authored by
Copilot
fcoppede
parent
943d9e0967
commit
b5d7518ad1
@@ -1,26 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Actions
|
||||
sidebar_label: Actions
|
||||
---
|
||||
|
||||
An Identity and Management system is a very interactive place. ZITADEL has built in functionality to react to its events. This functionality is called **Actions** and can be accessed from your organizations top navigation.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/actionsmenu.png"
|
||||
width="700px"
|
||||
alt="Actions menu"
|
||||
/>
|
||||
|
||||
Actions allow you to define scripts which are then run on certain triggers.
|
||||
To add an action, click at the **new** button and provide a script and a name.
|
||||
You can specify a timeout and whether the action is allowed to fail too.
|
||||
|
||||
<img src="/docs/img/guides/console/action.png" alt="Create Action" width="450px" />
|
||||
|
||||
To run those scripts, a flow with a trigger has to be created.
|
||||
This could for example be an **External Authentication** Flow, with a **Post Authentication** trigger.
|
||||
|
||||
<img src="/docs/img/guides/console/flow.png" alt="Flow" width="400px" />
|
||||
|
||||
Now whenever a user gets authenticated externally with an IDP, an action is triggered after the authentication itself.
|
||||
If you want to know more where actions can be useful, take a look at the feature [here](/concepts/features/actions) or directly jump to an example of a custom behavior [here](/guides/manage/customize/behavior).
|
||||
@@ -1,200 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Applications
|
||||
sidebar_label: Applications
|
||||
---
|
||||
|
||||
import ThemedImage from "@/components/docusaurus/themed-image";
|
||||
import AuthType from "../../integrate/application/_auth-type.mdx";
|
||||
import ReviewConfig from "../../integrate/application/_review-config.mdx";
|
||||
import AppType from "./_application-types.mdx";
|
||||
|
||||
## What is an application?
|
||||
|
||||
Applications are the entry point to your project.
|
||||
Users either login into one of your applications and interact with them directly or use one of your APIs.
|
||||
All applications share the roles and authorizations of their project.
|
||||
|
||||
To access your applications, navigate to your project and select your application.
|
||||
|
||||
<img
|
||||
alt="Granted project"
|
||||
src="/docs/img/guides/console/applications.png"
|
||||
width="750px"
|
||||
/>
|
||||
|
||||
## Create application
|
||||
|
||||
To add an application to your project, click on the add button and select your application type.
|
||||
|
||||
<img
|
||||
alt="Add application"
|
||||
src="/docs/img/guides/console/addapplication.png"
|
||||
width="120px"
|
||||
/>
|
||||
|
||||
## Application Types
|
||||
|
||||
At the moment ZITADEL offers five application types:
|
||||
|
||||
<AppType components={props.components} />
|
||||
|
||||
The first three options (Web, Native and User Agent) require user interaction, the fourth option (API) has no direct user-interaction.
|
||||
Depending on the app type, there are small differences in the possible settings.
|
||||
|
||||
To get a good understanding about user profiles and recommended flows, read the following [guide](../../integrate/login/oidc/oauth-recommended-flows#different-client-profiles).
|
||||
|
||||
### Web
|
||||
|
||||
Web applications are **server side rendered** applications users interact with. For example if you develop an application using Thymeleaf in Java or Razor in .NET or want to enable SSO in Gitlab.
|
||||
|
||||
Typical **React or Angular** apps **are not** a Web applications in this case.
|
||||
A **NextJS** on the contrary would be because it allows you to implement server side code.
|
||||
|
||||
Following authentication types can be used:
|
||||
|
||||
<AuthType components={props.components} appType="web" />
|
||||
|
||||
### Native
|
||||
|
||||
Native Applications installed on a thin client. For example on a smartphone or computer. This can for example be Android and iOS Applications.
|
||||
|
||||
These applications uses the Key file generated by ZITADEL to authenticate.
|
||||
|
||||
<AuthType components={props.components} appType="native" />
|
||||
|
||||
### User Agent
|
||||
|
||||
User Agent Applications that are executed in a web browser, for example single page applications executed in the browser developed with JavaScript frameworks like [Angular](../../../examples/login/angular) or [React](../../../examples/login/react)
|
||||
|
||||
Following **authentication methods** can be used:
|
||||
|
||||
<AuthType components={props.components} appType="user-agent" />
|
||||
|
||||
### API
|
||||
|
||||
These are Applications without human interaction. These applications are accessed by other applications, so called machine to machine communication.
|
||||
|
||||
Following authentication types can be used:
|
||||
|
||||
<AuthType components={props.components} appType="api" />
|
||||
|
||||
After selecting your Apps Type and Authentication Method, you may need to specify redirect URIs.
|
||||
|
||||
### SAML
|
||||
|
||||
If your application doesn't support the OIDC standard, but SAML this is the right application type to choose. SAML is an open standard used for authentication based on XML.
|
||||
|
||||
After entering a name and choosing the application type "SAML", you will get to the SAML configuration screen.
|
||||
|
||||
You can either add a link to a SAML metadata file or upload it directly.
|
||||
SAML metadata is an XML document which contains information necessary for interaction with SAML-enabled identity or service providers.
|
||||
|
||||
You can find some example configurations for SAML 2.0 in our [integrate services](/guides/integrate/services) guides
|
||||
|
||||
## Redirect URIs
|
||||
|
||||
App Types with User interaction (Web, Native and User Agent) require redirect URIs.
|
||||
Those redirects URIs are used to redirect the user back to your application on successful login.
|
||||
|
||||
These URIs are defined in your application code and are checked by ZITADEL if they correspond to your applications configuration.
|
||||
Redirect URIs are checked during the login process.
|
||||
Native applications can use a different protocol than http or https in order to redirect your user.
|
||||
|
||||
<img
|
||||
alt="Redirect URIs"
|
||||
src="/docs/img/guides/console/redirecturis.png"
|
||||
width="600px"
|
||||
/>
|
||||
|
||||
### Development mode
|
||||
|
||||
In order to develop locally, or you want to redirect users to any other protocol than https://, you must enable **Development mode**.
|
||||
When disabled only https is allowed, as ZITADEL's configuration is secure by default.
|
||||
|
||||
<img
|
||||
alt="Development mode"
|
||||
src="/docs/img/guides/console/developmentmode.png"
|
||||
width="600px"
|
||||
/>
|
||||
|
||||
Development mode also allows glob patterns in redirect URIs with the following special terms in the patterns:
|
||||
|
||||
| Special Terms | Meaning |
|
||||
| ------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| `*` | matches any sequence of non-path-separators |
|
||||
| `/**/` | matches zero or more directories |
|
||||
| `?` | matches any single non-path-separator character |
|
||||
| `[class]` | matches any single non-path-separator character against a class of characters [see "character classes"][1] |
|
||||
| `{alt1,...}` | matches a sequence of characters if one of the comma-separated alternatives matches |
|
||||
|
||||
[1]: https://github.com/bmatcuk/doublestar?tab=readme-ov-file#character-classes
|
||||
|
||||
Special character can be escaped with a backslash (`\`).
|
||||
|
||||
Double stars (`**`) should appear surrounded by a path separators such as `/**/`.
|
||||
A mid-pattern double star (`**`) behaves like bash's glob star option: a pattern
|
||||
such as `path/to/**.txt` would return the same results as `path/to/*.txt`. The
|
||||
pattern you're looking for is `path/to/**/*.txt`.
|
||||
|
||||
*Source: [github.com/bmatcuk/doublestar](https://github.com/bmatcuk/doublestar?tab=readme-ov-file#patterns)*
|
||||
|
||||
> When IPv6 URIs are used as redirects in development mode, square brackets must be escaped as they are also Special Terms for globs. `http://\[::1\]:80`
|
||||
|
||||
## Review Configuration
|
||||
|
||||
<ReviewConfig components={props.components} authType="code" />
|
||||
|
||||
## Application settings
|
||||
|
||||
After creating the application, you can still change its configuration if you for example need a offline_access support (Refresh token).
|
||||
You can easily change your authentication method via the colored toggle on top or directly change configuration via the input and dropdown fields.
|
||||
|
||||
> Note: Changing application type is not possible. In this case you have to create a new application.
|
||||
|
||||
<img
|
||||
alt="Redirect URIs"
|
||||
src="/docs/img/guides/console/application.png"
|
||||
width="800px"
|
||||
/>
|
||||
|
||||
On the top of the page you can check if your application is OIDC compliant.
|
||||
Tasks for completion are shown in the field.
|
||||
|
||||
<img
|
||||
alt="OIDC Compliance"
|
||||
src="/docs/img/guides/console/oidc-compliance.png"
|
||||
width="600px"
|
||||
/>
|
||||
|
||||
### Token settings
|
||||
|
||||
In the token settings you can change the type from **Bearer Token** to **JWT**, and check some settings whether you need user roles and user information in the ID Token or not.
|
||||
On the bottom you can optionally set a **ClockSkew** time which is added to the expiration time of the issued token.
|
||||
|
||||
<img
|
||||
alt="Token settings"
|
||||
src="/docs/img/guides/console/app-token-settings.png"
|
||||
width="600px"
|
||||
/>
|
||||
|
||||
### Redirect settings
|
||||
|
||||
Like on creation, you can modify you redirect settings here.
|
||||
Note that for local development you most likely have to enable development mode, as redirects to http:// are otherwise blocked.
|
||||
On Native Apps you can also skip the Login Success Page.
|
||||
|
||||
<img
|
||||
alt="Redirect URIs"
|
||||
src="/docs/img/guides/console/redirect-uris.png"
|
||||
width="500px"
|
||||
/>
|
||||
|
||||
### Additional origins
|
||||
|
||||
If you need to allow additional origins which should **NOT** be used as redirect you can specify them in the **Additional origins** section.
|
||||
|
||||
<img
|
||||
alt="Additional origins"
|
||||
src="/docs/img/guides/console/additional-origins.png"
|
||||
width="500px"
|
||||
/>
|
||||
@@ -68,7 +68,7 @@ In the Branding settings, you can upload you Logo for the login interface, set y
|
||||
|
||||
Make sure you click the "Apply configuration" button after you finish your configuration. This will ensure your design is visible for your customers.
|
||||
|
||||
Branding settings applied on you instance act as a default for all your organizations. If you need custom branding on a organization take a look at our guide under [organization setting](./organizations#organization-settings).
|
||||
Branding settings applied on you instance act as a default for all your organizations. If you need custom branding on a organization take a look at our guide under [organization setting](./organizations-overview#organization-settings).
|
||||
|
||||
## Notification settings
|
||||
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Organizations
|
||||
sidebar_label: Organizations
|
||||
---
|
||||
|
||||
import OrgDescription from "../../../concepts/structure/_org_description.mdx";
|
||||
import Column from "@/components/column";
|
||||
|
||||
## What is an organization?
|
||||
|
||||
An Organization is where your projects and users live. Looking at a B2B use case, an organization represents a business partner who typically has its own branding and has different access settings like additional federated login providers.
|
||||
Users from one organization are separated from others.
|
||||
|
||||
## Create a new organization
|
||||
|
||||
To create a new organization, click on the organizations dropdown and then select “New organization”.
|
||||
You can either create a new organization with your logged in user as the organization manager or directly create another account.
|
||||
If you choose your logged in user as organization manager, a membership for the new organization will be added to the account.
|
||||
|
||||
<img
|
||||
width="400px"
|
||||
src="/docs/img/console_org_select.png"
|
||||
alt="Select Organization"
|
||||
/>
|
||||
|
||||
If you want to enable your customers to create their organization by themselves, we provide a creation form for an organization. `https://${CUSTOM_DOMAIN}/ui/login/register/org`
|
||||
The customer needs to fill in the form with the organization name and the contact details.
|
||||
|
||||
<img
|
||||
width="400px"
|
||||
src="/docs/img/console_org_register.png"
|
||||
alt="Register new organization"
|
||||
/>
|
||||
|
||||
## How ZITADEL handles usernames
|
||||
|
||||
If your domain setting "user loginname must contain orgdomain" is disabled, your username will be unique within the whole instance.
|
||||
At the moment the username only allows e-mail formatted input. (This will be changed soon)
|
||||
|
||||
### User Loginname must contain orgdomain
|
||||
|
||||
If this behavior is not suitable for you, ZITADEL has the option to suffix the usernames with the organization domain.
|
||||
This setting is called **User Loginname must contain orgdomain** and is part of your [Domain settings](./default-settings#domain-settings).
|
||||
|
||||
Those loginnames consist of the format `{username}@{domainname}.${CUSTOM_DOMAIN}`.
|
||||
If your user had the username `john.doe`, the generated loginname would be `[email protected]`.
|
||||
This also means that only one user with the username `john.doe` can exist in your organization called `ACME`.
|
||||
|
||||
If you verify your domain name or add additional domains, ZITADEL will generate those additional login names for you.
|
||||
If the organization would own the domain `acme.ch` and verify it, then the resulting loginname would be `[email protected]` in addition to the already generated `[email protected]`.
|
||||
The user can now use either login name to authenticate with your application.
|
||||
|
||||
> Note: You can set this setting on your instance as well as your organizations. All available usernames are shown on the top of the user pages.
|
||||
|
||||
## Domain verification and primary domain
|
||||
|
||||
Once you have successfully registered your organization, ZITADEL will automatically generate a domain name for your organization (eg, acme.zitadel.cloud).
|
||||
Users that you create within your organization will be suffixed with this domain name.
|
||||
|
||||
You can improve the user experience, by suffixing users with a domain name that is in your control.
|
||||
If the "validate org domains" settings in the [Domain Settings](./default-settings#domain-settings) is set to true, you have to prove the ownership of your domain, by DNS or HTTP challenge.
|
||||
If the setting is set to false, the created domain will automatically be set to verified.
|
||||
|
||||
An organization can have multiple domain names, but only one domain can be primary.
|
||||
The primary domain defines which login name ZITADEL displays to the user, and what information gets asserted in access_tokens (`preferred_username`).
|
||||
|
||||
Please note that domain verification also removes the login name from all users, who might have used this combination in the global organization (ie. users not belonging to a specific organization).
|
||||
Relating to our example with acme.ch: If a user ‘coyote’ exists in the global organization with the login name [email protected], then after verification of acme.ch, this login name will be replaced with `coyote@{randomvalue.tld}`.
|
||||
ZITADEL will notify users affected by this change.
|
||||
|
||||
## Verify your domain name
|
||||
|
||||
<Callout>
|
||||
You can also disable domain verification with DNS challenge in the [default settings](/guides/manage/console/default-settings#domain-settings).
|
||||
</Callout>
|
||||
|
||||
1. Browse to your organization settings
|
||||
2. Select the menu entry **Verified domains**
|
||||
3. To start the domain verification click the domain name and a dialog will appear, where you can choose between DNS or HTTP challenge methods.
|
||||
|
||||
<img
|
||||
width="400px"
|
||||
src="/docs/img/console_verify_domain.png"
|
||||
alt="Select Organization"
|
||||
/>
|
||||
|
||||
4. For example, create a TXT record with your DNS provider for the used domain and click verify. ZITADEL will then proceed and check your DNS. Here are some useful links explaining how you can add TXT records for popular domain providers:
|
||||
|
||||
- [Cloudflare](https://www.zoho.com/mail/help/adminconsole/cloudflare.html#alink1)
|
||||
- [Squarespace](https://support.squarespace.com/hc/en-us/articles/205812388-Domain-verification-with-a-TXT-Record-alternative-method-)
|
||||
- [Name.com](https://www.name.com/support/articles/115004972547-adding-a-txt-record)
|
||||
- [EasyDNS](https://kb.easydns.com/knowledge/how-to-make-a-dns-entry/)
|
||||
- [DNS Made Easy](https://support.dnsmadeeasy.com/support/solutions/articles/47001001376-create-a-txt-record)
|
||||
|
||||
5. When the verification is successful you have the option to activate the domain by clicking **Set as primary**
|
||||
|
||||
<Callout type="warn">
|
||||
Do not delete the verification code, as ZITADEL will re-check the ownership of your domain from time to time
|
||||
</Callout>
|
||||
|
||||
## Organization Settings
|
||||
|
||||
In organizations you also have settings that have higher priority than on your default settings, and therefore override them.
|
||||
Those settings are the same as your default settings.
|
||||
|
||||
> Note: that the following links, redirect to default settings to omit redundancy.
|
||||
|
||||
- [**Domain settings**](./default-settings#domain-settings): Whether users use their email or the generated username to login. Other Validation, SMTP settings
|
||||
- [**Branding**](./default-settings#branding): Appearance of the login interface.
|
||||
- [**Notification settings**](./default-settings#notification-settings): Setup Notification and Email Server settings for initialization-, verification- and other mails. Setup Twilio as SMS notification provider.
|
||||
- [**Login Behavior and Access**](./default-settings#login-behavior-and-access): Multifactor Authentication Options and Enforcement, Define whether passkeys are allowed or not, Set Login Lifetimes and advanced behavior for the login interface.
|
||||
- [**Identity Providers**](./default-settings#identity-providers): Define IDPs which are available for all organizations
|
||||
- [**Password Complexity**](./default-settings#password-complexity): Requirements for Passwords ex. Symbols, Numbers, min length and more.
|
||||
- [**Lockout**](./default-settings#lockout): Set the maximum attempts a user can try to enter the password or any (T)OTP method. When the number is exceeded, the user gets locked out and has to be unlocked.
|
||||
- [**Verified domains**](/guides/manage/console/organizations-overview#usernames-and-domains): This is where you manage your organization specific domains which can be used to build usernames
|
||||
- [**Message Texts**](./default-settings#message-texts): Text and internationalization for emails
|
||||
- [**Login Interface Texts**](./default-settings#login-interface-texts): Text and internationalization for the login interface
|
||||
- [**External Links**](./default-settings#external-links): Links to your own Terms of Service and Privacy Policy regulations, Help Page, Support email, documentation link...
|
||||
|
||||
If you need custom branding on a organization (for example in a B2B scenario, where organizations are allowed to use their custom design), navigate back to the home page, choose your organization in the header above, navigate to the organization settings and set the custom design here.
|
||||
|
||||
The behavior of the login page, applying custom design, is then defined on your projects detail page. Read more about it [here](./projects#branding)
|
||||
|
||||
## Show Organization Login
|
||||
|
||||
As you should know by now ZITADEL knows the concept of Organizations.
|
||||
You can define [default settings](/guides/manage/console/default-settings) for your ZITADEL, or you can overwrite them for an [Organization](#organization-settings).
|
||||
Per default the ZITADEL Login will always show what is defined per default. As soon as the Organization context is given, the settings defined on the specific organization can be triggered.
|
||||
This means when you want to trigger the settings of an organization directly, make sure to send the organization scope in the authentication request.
|
||||
|
||||
```bash
|
||||
urn:zitadel:iam:org:id:{id}
|
||||
```
|
||||
|
||||
Read more about the [scopes](/apis/openidoauth/scopes#reserved-scopes) or try it out in our [OIDC Playground](https://zitadel.com/playgrounds/oidc).
|
||||
|
||||
## Default organization
|
||||
|
||||
On the Default settings page (`${CUSTOM_DOMAIN}`/ui/console/orgs) you can set an organization as default organization.
|
||||
Click the "..." on the right hand side of the table and select "Set as default organization".
|
||||
|
||||
The current default organization is marked by a label "Default".
|
||||
|
||||
When no organization was selected (eg, with the auth request or through [Domain Discovery](/guides/solution-scenarios/domain-discovery)), then all users are allowed to login and users can self-register to this default organization.
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Management Console
|
||||
sidebar_label: Overview
|
||||
---
|
||||
|
||||
## What is the management console?
|
||||
|
||||
Management Console is the Dashboard UI for your instance. It can be accessed from all configured Custom Domains, defined in the Customer Portal.
|
||||
The management console is used to configure global default settings and can be used by multiple Administrators.
|
||||
Read more about [Console Administrators](./administrators) here.
|
||||
|
||||
It can also be used by your application users to modify their profile, although we recommend that you build your own User Interface.
|
||||
|
||||
When you are logged in, you are greeted by the home page. This page allows you to set shortcuts to settings and projects.
|
||||
The management console has a context switcher on the **top-left** where your current organization is set.
|
||||
Depending on your use case, multiple organizations can be created (B2B) or you can stick to your global organization (B2C). To get an understanding of your use cases and how we recommend setting up your organizations, read the [Solution Scenario](../../solution-scenarios/introduction) guides.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/contextswitcher.png"
|
||||
alt="Context switcher"
|
||||
width="400px"
|
||||
/>
|
||||
|
||||
If you're new to management console, you'll probably want to set some settings initially. Continue reading Default settings on the next page.
|
||||
|
||||
## Prevent management console access
|
||||
|
||||
In some use cases you want to prevent users from accessing the ZITADEL management console.
|
||||
Please follow this [guide](/guides/solution-scenarios/restrict-console) to achieve that.
|
||||
@@ -1,109 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Projects
|
||||
sidebar_label: Projects
|
||||
---
|
||||
|
||||
import ProjectDescription from "../../../concepts/structure/_project_description.mdx";
|
||||
|
||||
## What is a project?
|
||||
|
||||
<ProjectDescription components={props.components} name="ProjectDescription" />
|
||||
|
||||
### Example
|
||||
|
||||
If you'd build a Point of Sales Platform, you would have one Project (maybe called `POS`) and all your applications (one Webapplication for administration, and your mobile applications for your users iOS and Android), would be part of it.
|
||||
You would have to create roles for administration and your applications in this very project, and then create authorizations based on them.
|
||||
|
||||

|
||||
|
||||
## Create a project
|
||||
|
||||
To create a project, navigate to your organization, then projects or directly via `https://${CUSTOM_DOMAIN}.zitadel.cloud/ui/console/projects`, and then click the button to create a new project.
|
||||
|
||||
<img
|
||||
alt="Empty Project"
|
||||
src="/docs/img/console_projects_empty.png"
|
||||
width="270px"
|
||||
/>
|
||||
|
||||
then enter your project name and continue.
|
||||
|
||||
## What is a granted project?
|
||||
|
||||
Now imagine you could use the POS platform from the example not only for yourself but sell it to other business partners too.
|
||||
Those partners would maybe have the need to have their own domain, their own branding and add additional social login options.
|
||||
Setting this up in ZITADEL is very easy since all organizations can overwrite their settings.
|
||||
You would only need a method to grant them access.
|
||||
|
||||
To add a grant to another organization is done from the project itself. Navigate to grants and hit the new button.
|
||||
Now, enter the domain of the partner organization (if you can't remember it, navigate to the organization and pick it up from the detail page), hit search and then continue.
|
||||
|
||||
Now select the roles you want this organization to use and save.
|
||||
This enables you to lock a certain organization out of a feature if you don't want their users to use it.
|
||||
You can learn more about roles [here](./roles).
|
||||
|
||||
Organizations can then create authorizations for their users on their own. The project is shown them separated from their own projects.
|
||||
|
||||
<img
|
||||
alt="Granted project"
|
||||
src="/docs/img/guides/console/grantedprojectgrid.png"
|
||||
width="320px"
|
||||
/>
|
||||
|
||||
## Grant a project
|
||||
|
||||
1. Visit the project `POS` that you have created before, then in the section **Grants** click **New**.
|
||||
|
||||
<img src="/docs/img/guides/console/grantsmenu.png" alt="Grants" width="170px" />
|
||||
|
||||
2. Search the organization you want to grant using the auto complete input and continue.
|
||||
3. Select some roles you would like to grant to the organization and confirm.
|
||||
4. You should now see the granted organization in the section **grants**.
|
||||
|
||||
## Project Settings
|
||||
|
||||
### Branding
|
||||
|
||||
If you have different designs for your organizations or probably and use project grants, you can define the login behavior on the project detail page.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/projectbranding.png"
|
||||
alt="Project branding"
|
||||
width="400px"
|
||||
/>
|
||||
|
||||
You can choose from
|
||||
|
||||
| Setting | Description |
|
||||
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| Unspecified | If nothing is specified the default will trigger. (System settings) |
|
||||
| Enforce project's policy | This setting will enforce the private labeling of the organization of the project through the whole login process. |
|
||||
| Allow login user policy | With this setting first the private labeling of the organization of the project will trigger. As soon as the user and its organization is identified by ZITADEL, the settings will change to the organization of the user. |
|
||||
|
||||
In a B2B use case, you would typically use the organization setting. If you want to omit organization detection, you can preselect an organization with the [primary domain scope](/apis/openidoauth/scopes#reserved-scopes) (ex. `urn:zitadel:iam:org:domain:primary:{domainname}`).
|
||||
|
||||
### Role settings
|
||||
|
||||
Below the branding settings, you can check different checkboxes to get even more custom behavior on authentication.
|
||||
|
||||
- **Assert Roles on Authentication**:
|
||||
Role information is sent from Userinfo endpoint and depending on your application settings in tokens and other types.
|
||||
- **Check authorization on Authentication**: If set, users are only allowed to authenticate if any role is assigned to their account.
|
||||
- **Check for Project on Authentication**:
|
||||
It is checked whether the user's organization has this project. If not, the user cannot be authenticated.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/rolesettings.png"
|
||||
width="700px"
|
||||
alt="Role settings"
|
||||
/>
|
||||
|
||||
If you want to have roles in your token, this has to be set in your applications as this is dependent on your application type. Navigate to your application and check this setting if you want so.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/tokenroles.png"
|
||||
width="700px"
|
||||
alt="Roles in token"
|
||||
/>
|
||||
|
||||
You can learn more about [Application and Token settings](./applications#token-settings) in the next section.
|
||||
@@ -3,7 +3,7 @@ title: ZITADEL Roles and Authorizations
|
||||
sidebar_label: Roles and Authorizations
|
||||
---
|
||||
|
||||
If you would build out the [POS use case example](./projects#example) you would probably need an application for administration.
|
||||
If you would build out the [POS use case example](./projects-overview#example-scenario) you would probably need an application for administration.
|
||||
In this application you would probably have somebody accessing as an accountant and somebody as an administrator, who is somebody with enhanced rights.
|
||||
To build this out, you would have to add this distinction as roles.
|
||||
To add roles, jump to the section **Roles** and create those new roles with the following values
|
||||
@@ -49,6 +49,6 @@ Type your username, hit continue, select the roles you want your user to have an
|
||||
alt="Authorization"
|
||||
/>
|
||||
|
||||
Now you can retrieve those roles in your application. ZITADEL has [multiple settings](./projects#project-settings) for you to access them more easily. Navigate to the **General** section of your project and check your needed ones.
|
||||
Now you can retrieve those roles in your application. ZITADEL has [multiple settings](./projects-overview#project-settings) for you to access them more easily. Navigate to the **General** section of your project and check your needed ones.
|
||||
|
||||
> Note: We did set up our authorizations from projects, but this can be achieved from multiple locations in console. You can view and add authorizations from your organization, your projects, or from your users page.
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
---
|
||||
title: ZITADEL Users
|
||||
sidebar_label: Users
|
||||
---
|
||||
|
||||
import CreateUser from './_create-user.mdx';
|
||||
|
||||
ZITADEL differs two different types of users:
|
||||
|
||||
- Users (Humans)
|
||||
- Service Accounts
|
||||
|
||||
<img src="/docs/img/guides/console/usersmenu.png" width="420px" alt="User types" />
|
||||
|
||||
A user has an email address and a password, and can additionally save information about phone, nickname, gender, language.
|
||||
A service account only has a name and a description aside his username.
|
||||
|
||||
A service account can be authenticated with JWT profile or Personal Access Tokens. Both methods can specify an expiry.
|
||||
A user can authenticate itself with his password, add multiple factors for additional security, and enable passkey authentication.
|
||||
|
||||
Service accounts are primarily used to gain access for a backend service or iot device. The fact that service accounts can also be ZITADEL administrators is used to restrict access to specific projects or organizations.
|
||||
To get an understanding on how service accounts are used, take a look at our NextJS B2B Demo application.
|
||||
|
||||
## Create User
|
||||
|
||||
<CreateUser components={props.components} />
|
||||
|
||||
## Metadata
|
||||
|
||||
When building complex applications, having the possibility to add metadata is essential.
|
||||
ZITADEL provides a key value storage for users on the user pages.
|
||||
Just navigate to the section **Metadata** and click on **edit**.
|
||||
|
||||
> In our [Point of Sales example](./projects#example) from the projects guide, you could add a `stripeCustomerId` as a metadata key. In your client application you could then easily fetch the customer from Stripe APIs for your payments.
|
||||
|
||||
<img
|
||||
width="460px"
|
||||
src="/docs/img/guides/console/usermetadata.png"
|
||||
alt="User Metadata"
|
||||
/>
|
||||
|
||||
Metadata can be requested via our auth and management APIs, from userinfo endpoint or ID Token.
|
||||
To get your metadata from the userinfo endpoint, add `urn:zitadel:iam:user:metadata` to your authentication request. Take a look at our reserved scopes [here](/apis/openidoauth/scopes#reserved-scopes) or take a look at our [metadata guide](../customize/user-metadata).
|
||||
|
||||
You can then toggle **User Info inside ID Token** in your application settings if you need this information in the ID Token too.
|
||||
|
||||
<img
|
||||
src="/docs/img/guides/console/appidtokensettings.png"
|
||||
width="650px"
|
||||
alt="ID Token settings"
|
||||
/>
|
||||
|
||||
## Authorizations
|
||||
|
||||
As described in [Roles and Authorizations](./roles), authorizations are shown on user profile pages too.
|
||||
If you need user roles in the user info endpoint, check the **Assert roles on authentication** checkbox in your project as described in [Authorizations](./roles#authorizations).
|
||||
If you need them in your ID Token, toggle **User roles inside ID Token** in application settings.
|
||||
@@ -23,7 +23,7 @@ Depending on your Software Development Life Cycle (SDLC) you can create multiple
|
||||
Right after org creation you'll be greeted with the domain section of your organization.
|
||||
ZITADEL automatically creates an organization domain of the form `[orgname].zitadel.cloud`, but you can create your own. Depending on the settings on the [Domain Policy](../../concepts/structure/policies) it has to be verified by saving a verification file on the specified location.
|
||||
We recommend that you create your domains early as they create a sense of confidence and trust for your application and changes later on might create additional migration effort.
|
||||
You can read more about how ZITADEL handles usernames [here](../manage/console/organizations#how-zitadel-handles-usernames).
|
||||
You can read more about how ZITADEL handles usernames [here](../manage/console/organizations-overview#login-name-formats).
|
||||
|
||||
### Data Provisioning
|
||||
|
||||
@@ -103,6 +103,6 @@ Read more about Authorization in our [Guide](../integrate/login/oidc/oauth-recom
|
||||
|
||||
## Learn more
|
||||
|
||||
- [Creating an organization](../manage/console/organizations#create-a-new-organization)
|
||||
- [Creating an organization](../manage/console/organizations-overview#create-a-new-organization)
|
||||
- [Organization Branding](../manage/customize/branding)
|
||||
- [Authorization](../integrate/login/oidc/oauth-recommended-flows)
|
||||
|
||||
@@ -33,7 +33,7 @@ ZITADEL Login: `login.app.com`
|
||||
In the OIDC Authorization request you always have to send the redirect URI to where you like to be redirected after login.
|
||||
To handle this scenario it is possible to register multiple URIs on each application in ZITADEL, the only criteria is that the requested URI has to match one of the registered URIs.
|
||||
|
||||
Read more about [applications](../manage/console/applications) and the [redirect urls](../manage/console/applications#redirect-ur-is)
|
||||
Read more about [applications](../manage/console/applications-overview) and the [redirect urls](../manage/console/applications-overview#redirect-uris)
|
||||
|
||||
### Trigger organization in ZITADEL login
|
||||
|
||||
|
||||
Reference in New Issue
Block a user