mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 21:48:46 +00:00
chore: Service Account Naming Consistency (#11557)
# Which Problems Are Solved Inconsistent naming of service account, found in the following variations: - Machine User - machine user - Service User - Machine Account - Technical Account - User: Type Machine # How the Problems Are Solved Attentive search and replace. Localizations have been translated using Copilot # Additional Changes Some unused methods have been removed from the Go code. # Additional Context - Closes #11285
This commit is contained in:
@@ -23,7 +23,7 @@ Its set of features will increase with time and its progress will be tracked [he
|
||||
The new Login app consists of a confidential (backend) part and a browser (client side) part.
|
||||
In addition to that, the OIDC specification builds upon a proxy which is set up in the Next.js middleware. It rewrites requests of the paths `/.well-known/:path*`, `/oauth/:path*`, `/oidc/:path*` to ZITADEL.
|
||||
|
||||
The backend side of the application is authorized using a machine user's personal access token.
|
||||
The backend side of the application is authorized using a service account's personal access token.
|
||||
This token is used to fetch policies and settings from your instances or organization which define how users are authenticated and how the Login app is displayed.
|
||||
|
||||
The frontend side of the application communicates to the backend side by using a cookie which is set by the server.
|
||||
@@ -137,7 +137,7 @@ You can review an example implementation of a middleware [here](https://github.c
|
||||
<img src="https://vercel.com/button" alt="Deploy with Vercel" style={{pointerEvents: "none", display: "block"}}/>
|
||||
</a>
|
||||
|
||||
To deploy your own version on Vercel, navigate to your instance and create a service user.
|
||||
To deploy your own version on Vercel, navigate to your instance and create a service account.
|
||||
Create a personal access token (PAT) for the user and copy and set it as `ZITADEL_SERVICE_USER_TOKEN`, then navigate to Default settings and make sure it gets `IAM_LOGIN_CLIENT` permissions.
|
||||
Finally set your instance url as `ZITADEL_API_URL`. Make sure to set it without trailing slash.
|
||||
Also ensure your login domain is registered on your instance by adding it as a [Trusted Domain](/apis/resources/admin/admin-service-add-instance-trusted-domain).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Callout type="warn" title="Don't Lock Yourself Out of Your Instance">
|
||||
Before you change your Zitadel configuration, we highly recommend you to create a service user with a personal access token (PAT) and the IAM_OWNER role.
|
||||
Before you change your Zitadel configuration, we highly recommend you to create a service account with a personal access token (PAT) and the IAM_OWNER role.
|
||||
In case something breaks, you can use this PAT to revert your changes or fix the configuration so you can use a login UI again.
|
||||
</Callout>
|
||||
|
||||
@@ -178,7 +178,7 @@ You can also activate the v2 login for your apps, so users are redirected to `/u
|
||||
|
||||
The simplest way to deploy the new login for yourself is by using the [Deploy with Vercel button](https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#login-deploy) to deploy the login directly to your Vercel.
|
||||
|
||||
1. [Create a service user](/guides/integrate/service-accounts/personal-access-token#create-a-service-user-with-a-pat) with a PAT in your instance
|
||||
1. [Create a service account](/guides/integrate/service-accounts/personal-access-token#create-a-service-account-with-a-pat) with a PAT in your instance
|
||||
2. Give the user IAM_LOGIN_CLIENT Permissions in the default settings (CUSTOM_DOMAIN/ui/console/instance?id=organizations)
|
||||
Note: [Zitadel Administrator Guide](/guides/manage/console/administrators)
|
||||
3. Deploy login to Vercel: You can do so by directly clicking the [“Deploy” button](https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#login-deploy) in our [repository](https://github.com/zitadel/zitadel)
|
||||
|
||||
@@ -215,7 +215,7 @@ https://github.com/zitadel/actions/blob/main/examples/custom_roles.js
|
||||
Now we will use the auth API to retrieve roles from a logged in user using the user’s token
|
||||
The base URL is: **https://`${CUSTOM_DOMAIN}`/auth/v1**
|
||||
|
||||
Let’s start with a user who has multiple roles in different organizations in a multi-tenanted set up. You can use the logged in user’s token or the machine user’s token to retrieve the authorizations using the [APIs listed under user authorizations/grants in the auth API](/reference/api/authorization).
|
||||
Let’s start with a user who has multiple roles in different organizations in a multi-tenanted set up. You can use the logged in user’s token or the service account’s token to retrieve the authorizations using the [APIs listed under user authorizations/grants in the auth API](/reference/api/authorization).
|
||||
|
||||
**Scope used:** `openid urn:zitadel:iam:org:project:id:zitadel:aud`
|
||||
|
||||
|
||||
@@ -14,15 +14,15 @@ This guide provides step-by-step instructions to configure SCIM provisioning fro
|
||||
|
||||
## Step 1: Set Up SCIM Provisioning in ZITADEL
|
||||
|
||||
SCIM provisioning in ZITADEL is accomplished by authenticating a Service User with appropriate permissions.
|
||||
SCIM provisioning in ZITADEL is accomplished by authenticating a Service Account with appropriate permissions.
|
||||
|
||||
1. **Create a Service User**:
|
||||
1. **Create a Service Account**:
|
||||
|
||||
* Follow [this guide](https://zitadel.com/docs/guides/manage/console/users-overview) to create a Service User within your ZITADEL Organization.
|
||||
* Follow [this guide](https://zitadel.com/docs/guides/manage/console/users-overview) to create a Service Account within your ZITADEL Organization.
|
||||
|
||||
2. **Assign the Role**:
|
||||
|
||||
* Grant the Service User the **Org User Manager** role. No higher managerial role is required.
|
||||
* Grant the Service Account the **Org User Manager** role. No higher managerial role is required.
|
||||
|
||||
3. **Choose an Authentication Method**:
|
||||
|
||||
@@ -32,7 +32,7 @@ SCIM provisioning in ZITADEL is accomplished by authenticating a Service User wi
|
||||
|
||||
* Client Credentials Grant
|
||||
|
||||
4. Detailed instructions to authenticate the Service User can be found [here](https://zitadel.com/docs/guides/integrate/service-accounts/authenticate-service-accounts).
|
||||
4. Detailed instructions to authenticate the Service Account can be found [here](https://zitadel.com/docs/guides/integrate/service-accounts/authenticate-service-accounts).
|
||||
|
||||
## Step 2: Set Up SCIM in Okta
|
||||
|
||||
@@ -110,9 +110,9 @@ Review and adjust attribute mappings in Okta as needed:
|
||||
|
||||
* [Authenticate users with SAML](https://zitadel.com/docs/guides/integrate/login/saml)
|
||||
|
||||
* [ZITADEL: Creating Service Users](https://zitadel.com/docs/guides/manage/console/users-overview)
|
||||
* [ZITADEL: Creating Service Accounts](https://zitadel.com/docs/guides/manage/console/users-overview)
|
||||
|
||||
* [ZITADEL: Service User Authentication](https://zitadel.com/docs/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
* [ZITADEL: Service Account Authentication](https://zitadel.com/docs/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
|
||||
* [ZITADEL SCIM 2.0 API Endpoints](https://zitadel.com/docs/apis/scim2)
|
||||
|
||||
|
||||
+28
-28
@@ -5,53 +5,53 @@ sidebar_label: Authenticate service accounts
|
||||
|
||||
import DocCardList from '@/components/docusaurus/doc-card-list';
|
||||
|
||||
This guide explains ZITADEL service users and their role in facilitating secure machine-to-machine communication within your applications.
|
||||
This guide explains ZITADEL service accounts and their role in facilitating secure machine-to-machine communication within your applications.
|
||||
|
||||
## What are Service Users?
|
||||
## What are Service Accounts?
|
||||
|
||||
Service users in ZITADEL represent **non-human entities** within your system.
|
||||
Service accounts in ZITADEL represent **non-human entities** within your system.
|
||||
They are ideal for scenarios involving secure communication between applications, particularly when interacting with backend services or APIs.
|
||||
Service users in combination with [Administrator](/concepts/structure/administrators) permissions are used to access ZITADEL's APIs, for example, to manage user resources.
|
||||
Service accounts in combination with [Administrator](/concepts/structure/administrators) permissions are used to access ZITADEL's APIs, for example, to manage user resources.
|
||||
Unlike users, service accounts don't rely on traditional login methods (e.g., username/password) and require alternative authentication mechanisms.
|
||||
|
||||
## Benefits of using Service Users
|
||||
## Benefits of using Service Accounts
|
||||
|
||||
### Enhanced security
|
||||
|
||||
* **Principle of Least Privilege:** Grant service users only the minimum permissions they need, minimizing potential damage in case of compromise.
|
||||
* **Distinct Credentials:** Avoid embedding sensitive credentials like API keys directly in code. Service user credentials can be rotated independently.
|
||||
* **Principle of Least Privilege:** Grant service accounts only the minimum permissions they need, minimizing potential damage in case of compromise.
|
||||
* **Distinct Credentials:** Avoid embedding sensitive credentials like API keys directly in code. Service account credentials can be rotated independently.
|
||||
|
||||
### Segregated authorization
|
||||
|
||||
Manage authorization for service users separately from human users, providing an extra layer of control.
|
||||
Manage authorization for service accounts separately from human users, providing an extra layer of control.
|
||||
|
||||
### API and backend access
|
||||
|
||||
Service users offer a secure way to authenticate and access various API endpoints and protected backend services.
|
||||
Service accounts offer a secure way to authenticate and access various API endpoints and protected backend services.
|
||||
|
||||
You can [use service users to access ZITADEL APIs](../zitadel-apis/access-zitadel-apis), follow the guides to learn how to access the different ZITADEL APIs.
|
||||
You can [use service accounts to access ZITADEL APIs](../zitadel-apis/access-zitadel-apis), follow the guides to learn how to access the different ZITADEL APIs.
|
||||
While you can define the scopes and required information in your requests for your applications API endpoints, when using the ZITADEL APIs, you must include the scope `urn:zitadel:iam:org:project:id:zitadel:aud` to gain access.
|
||||
|
||||
### Improved auditability
|
||||
|
||||
Actions performed by service users are clearly identifiable in logs, facilitating easier auditing and tracing.
|
||||
Actions performed by service accounts are clearly identifiable in logs, facilitating easier auditing and tracing.
|
||||
|
||||
Using the [Event API](../zitadel-apis/event-api) you can use these logs for further analysis or to integrate the logs with [external SOC / SIEM](../external-audit-log) systems.
|
||||
|
||||
## Authentication methods
|
||||
|
||||
ZITADEL supports two primary authentication methods for service users:
|
||||
ZITADEL supports two primary authentication methods for service accounts:
|
||||
|
||||
### Private key JWT authentication
|
||||
|
||||
#### How private key JWT authentication works
|
||||
|
||||
* Generate a private/public key pair associated with the service user.
|
||||
* Generate a private/public key pair associated with the service account.
|
||||
* Sign JWTs with the private key.
|
||||
* ZITADEL validates the signature using the service user's public key.
|
||||
* ZITADEL validates the signature using the service account's public key.
|
||||
* JWTs can include expiration dates and scopes to control access.
|
||||
|
||||
Follow our guide on using [private key JWT client authentication](./private-key-jwt) to get started authenticating service users and applications.
|
||||
Follow our guide on using [private key JWT client authentication](./private-key-jwt) to get started authenticating service accounts and applications.
|
||||
|
||||
#### Benefits of private key JWT authentication
|
||||
|
||||
@@ -71,22 +71,22 @@ Follow our guide on using [private key JWT client authentication](./private-key-
|
||||
|
||||
### Client credentials grant
|
||||
|
||||
* Presents a client ID and client secret associated with the service user.
|
||||
* Presents a client ID and client secret associated with the service account.
|
||||
* Simpler than the JWT profile in specific scenarios.
|
||||
|
||||
Follow our guide on using [client credentials grant](./client-credentials) to get started authenticating service users and applications.
|
||||
Follow our guide on using [client credentials grant](./client-credentials) to get started authenticating service accounts and applications.
|
||||
|
||||
This method is still available in ZITADEL but is generally considered less secure than JWT due to:
|
||||
|
||||
* **Centralized Validation:** Relies on the server to verify credentials for every request, potentially impacting performance and requiring more server resources.
|
||||
* **Credentials Exposure:** Leaked client ID and secret could be used by attackers to impersonate the service user until rotation occurs.
|
||||
* **Credentials Exposure:** Leaked client ID and secret could be used by attackers to impersonate the service account until rotation occurs.
|
||||
|
||||
### Personal Access Tokens (PATs)
|
||||
|
||||
* **Ready-to-use tokens:** Generated for specific service users and can be directly included in the authorization header of API requests.
|
||||
* **Ready-to-use tokens:** Generated for specific service accounts and can be directly included in the authorization header of API requests.
|
||||
* **Currently available only for service accounts** and not users.
|
||||
|
||||
Follow our guide on using [personal access tokens](./personal-access-token) to get started authenticating service users and applications.
|
||||
Follow our guide on using [personal access tokens](./personal-access-token) to get started authenticating service accounts and applications.
|
||||
|
||||
PAT offer some benefits, such as:
|
||||
|
||||
@@ -98,15 +98,15 @@ However, PATs also come with limitations:
|
||||
* **Revocation:** Requires deleting the PAT directly, potentially causing downtime if not managed carefully.
|
||||
* **Leakage:** PATs are long-lived tokens that can be readily used in API calls, if leaked the attacker can access all resources until the PAT is expired or deleted. Private key JWT and client credentials create a short-lived access token instead.
|
||||
|
||||
## Using Service Users
|
||||
## Using Service Accounts
|
||||
|
||||
1. **Creation:** Access the ZITADEL management console and create a new service user. Assign a descriptive name that reflects its purpose. Follow our detailed guide on [how to create service users](../../manage/console/users).
|
||||
1. **Creation:** Access the ZITADEL management console and create a new service account. Assign a descriptive name that reflects its purpose. Follow our detailed guide on [how to create service accounts](../../manage/console/users).
|
||||
2. **Credentials:** Choose your preferred authentication method (JWT or Client Credentials) and securely store the generated credentials (private key, client secret).
|
||||
3. **Making API Calls:** When your service needs to make an API call:
|
||||
* **For JWT:** Generate and sign a JWT. Include it in the "Authorization" header of your API request.
|
||||
* **For Client Credentials:** Include the client ID and client secret in your API request.
|
||||
* **For PATs:** Include the PAT directly in the "Authorization" header of your API request.
|
||||
4. ZITADEL Verifies the credentials and authorizes the service user to perform the requested action based on its granted permissions.
|
||||
4. ZITADEL Verifies the credentials and authorizes the service account to perform the requested action based on its granted permissions.
|
||||
|
||||
We have guides for the different authentication methods:
|
||||
|
||||
@@ -116,19 +116,19 @@ We have guides for the different authentication methods:
|
||||
|
||||
## Important considerations
|
||||
|
||||
* **Secure Credentials:** Treat service user credentials (private keys, client secrets) with utmost care. Store them securely, similar to any other sensitive information like API keys or passwords.
|
||||
* **Secure Credentials:** Treat service account credentials (private keys, client secrets) with utmost care. Store them securely, similar to any other sensitive information like API keys or passwords.
|
||||
* **Expiry Management:** Set appropriate expiration dates for JWTs and regularly rotate all credentials to maintain strong security practices.
|
||||
* **Permission Granting:** Adhere to the principle of least privilege by granting only the specific permissions required for a service user's function.
|
||||
* **Permission Granting:** Adhere to the principle of least privilege by granting only the specific permissions required for a service account's function.
|
||||
|
||||
## Choosing the right authentication method
|
||||
|
||||
For most service user scenarios in ZITADEL, [private key JWT authentication](./private-key-jwt) is the recommended choice due to its benefits in security, performance, and control.
|
||||
For most service account scenarios in ZITADEL, [private key JWT authentication](./private-key-jwt) is the recommended choice due to its benefits in security, performance, and control.
|
||||
However, [client credentials authentication](./client-credentials) might be considered in specific situations where simplicity and trust between servers are priorities.
|
||||
|
||||
## Further resources
|
||||
|
||||
* Read about the [different methods to authenticate service users](./authenticate-service-accounts)
|
||||
* [Service User API reference](/reference/api/user)
|
||||
* Read about the [different methods to authenticate service accounts](./authenticate-service-accounts)
|
||||
* [Service Account API reference](/reference/api/user)
|
||||
* [OIDC JWT with private key](/apis/openidoauth/authn-methods#jwt-with-private-key) authentication method reference
|
||||
* [Access ZITADEL APIs](../zitadel-apis/access-zitadel-apis)
|
||||
* Validate access tokens with [token introspection with private key jwt](../token-introspection/private-key-jwt.mdx)
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
---
|
||||
title: Configure client credential authentication for service users
|
||||
title: Configure client credential authentication for service accounts
|
||||
sidebar_label: Client credential authentication
|
||||
---
|
||||
|
||||
This guide demonstrates how developers can leverage Client Credential authentication to secure communication between [service users](/guides/manage/console/users-overview#service-accounts) and client applications within ZITADEL.
|
||||
This guide demonstrates how developers can leverage Client Credential authentication to secure communication between [service accounts](/guides/manage/console/users-overview#service-accounts) and client applications within ZITADEL.
|
||||
|
||||
In ZITADEL, the Client Credentials Flow can be used for this [non-interactive authentication](./authenticate-service-accounts) as alternative to the [JWT profile authentication](./authenticate-service-accounts).
|
||||
|
||||
## Steps to authenticate a Service User with client credentials
|
||||
## Steps to authenticate a Service Account with client credentials
|
||||
|
||||
### 1. Create a Service User with a client secret
|
||||
### 1. Create a Service Account with a client secret
|
||||
|
||||
1. Navigate to Service Users
|
||||
1. Navigate to Service Accounts
|
||||
2. Click on **New**
|
||||
3. Enter a username and a display name
|
||||
4. Click on **Create**
|
||||
@@ -23,11 +23,11 @@ Make sure to copy in particular the ClientSecret. You won't be able to retrieve
|
||||
If you lose it, you will have to generate a new one.
|
||||
</Callout>
|
||||
|
||||

|
||||

|
||||
|
||||
### 2. Authenticating a service user and request a token
|
||||
### 2. Authenticating a service account and request a token
|
||||
|
||||
In this step, we will authenticate a service user and receive an access_token to use against the ZITADEL API.
|
||||
In this step, we will authenticate a service account and receive an access_token to use against the ZITADEL API.
|
||||
|
||||
You will need to craft a POST request to ZITADEL's token endpoint:
|
||||
|
||||
@@ -48,7 +48,7 @@ curl --request POST \
|
||||
If you want to access ZITADEL APIs, make sure to include the required scopes `urn:zitadel:iam:org:project:id:zitadel:aud`.
|
||||
Read our guide [how to access ZITADEL APIs](../zitadel-apis/access-zitadel-apis) to learn more.
|
||||
|
||||
**Important Note:** If the service user token needs to be validated using token introspection, ensure you include the `urn:zitadel:iam:org:project:id:{projectid}:aud` scope in your token request.
|
||||
**Important Note:** If the service account token needs to be validated using token introspection, ensure you include the `urn:zitadel:iam:org:project:id:{projectid}:aud` scope in your token request.
|
||||
Without this, token introspection will fail.
|
||||
|
||||
You should receive a successful response with `access_token`, `token_type` and time to expiry in seconds as `expires_in`.
|
||||
@@ -64,15 +64,15 @@ Content-Type: application/json
|
||||
}
|
||||
```
|
||||
|
||||
Per default a service user will get an opaque access token.
|
||||
If you want to get a Jason Web Token (JWT) as an access token for your user, you can change the token type in the general settings of your service account.
|
||||
Per default a service account will get an opaque access token.
|
||||
If you want to get a JSON Web Token (JWT) as an access token for your user, you can change the token type in the general settings of your service account.
|
||||
To learn more about opaque and JWT tokens read our [Opaque Tokens in ZITADEL: Enhancing Application Security](/concepts/knowledge/opaque-tokens) Guide
|
||||
|
||||

|
||||

|
||||
|
||||
### 3. Include the access token in the authorization header
|
||||
|
||||
When making API requests on behalf of the service user, include the generated token in the "Authorization" header with the "Bearer" prefix.
|
||||
When making API requests on behalf of the service account, include the generated token in the "Authorization" header with the "Bearer" prefix.
|
||||
|
||||
```bash
|
||||
curl --request POST \
|
||||
@@ -84,7 +84,7 @@ curl --request POST \
|
||||
## Accessing ZITADEL APIs
|
||||
|
||||
You might want to access ZITADEL APIs to manage resources, such as users, or to validate tokens sent to your backend service.
|
||||
Follow our guides on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) to use the ZITADEL APIs with your service user using client credentials.
|
||||
Follow our guides on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) to use the ZITADEL APIs with your service account using client credentials.
|
||||
|
||||
### Token introspection
|
||||
|
||||
@@ -97,12 +97,12 @@ Follow our [guide on token introspection with client credentials](../token-intro
|
||||
* **Store private keys securely:** **Never share or embed the private key in your code or application.** Consider using secure key management solutions.
|
||||
* **Set appropriate expiration times:** Limit the validity period of tokens to minimize the impact of potential compromise.
|
||||
|
||||
By following these steps and adhering to security best practices, you can effectively secure service user and client application communication within ZITADEL using client credential authentication.
|
||||
By following these steps and adhering to security best practices, you can effectively secure service account and client application communication within ZITADEL using client credential authentication.
|
||||
|
||||
## Notes
|
||||
|
||||
* Read about the [different methods to authenticate service users](./authenticate-service-accounts)
|
||||
* [Service User API reference](/reference/api/user)
|
||||
* Read about the [different methods to authenticate service accounts](./authenticate-service-accounts)
|
||||
* [Service Account API reference](/reference/api/user)
|
||||
* [OIDC client secret basic](/apis/openidoauth/authn-methods#client-secret-basic) authentication method reference
|
||||
* [Access ZITADEL APIs](../zitadel-apis/access-zitadel-apis)
|
||||
* Validate access tokens with [token introspection with basic auth](../token-introspection/basic-auth)
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
---
|
||||
title: Configure personal access token authentication for service users
|
||||
title: Configure personal access token authentication for service accounts
|
||||
sidebar_label: Personal access token authentication
|
||||
---
|
||||
|
||||
A Personal Access Token (PAT) is a ready-to-use token that can be used as an _Authorization_ header.
|
||||
At the moment ZITADEL only allows PATs for machine accounts (service users).
|
||||
At the moment ZITADEL only allows PATs for service accounts.
|
||||
|
||||
It is an alternative to the [private key JWT](./private-key-jwt) and [client credentials](./client-credentials). Read more about the different [authentication methods for service users](./authenticate-service-accounts).
|
||||
It is an alternative to the [private key JWT](./private-key-jwt) and [client credentials](./client-credentials). Read more about the different [authentication methods for service accounts](./authenticate-service-accounts).
|
||||
|
||||
## Create a Service User with a PAT
|
||||
## Create a Service Account with a PAT
|
||||
|
||||
1. Navigate to Service Users
|
||||
1. Navigate to Service Accounts
|
||||
2. Click on **New**
|
||||
3. Enter a username and a display name
|
||||
4. Click on the Personal Access Token menu point in the detail of your user
|
||||
@@ -22,11 +22,11 @@ It is an alternative to the [private key JWT](./private-key-jwt) and [client cre
|
||||
|
||||
## Grant role for ZITADEL
|
||||
|
||||
To be able to access the ZITADEL APIs, your service user needs permissions to ZITADEL.
|
||||
To be able to access the ZITADEL APIs, your service account needs permissions to ZITADEL.
|
||||
|
||||
1. Go to the detail page of your organization
|
||||
2. Click in the top right corner the "+" button
|
||||
3. Search for your service user
|
||||
3. Search for your service account
|
||||
4. Give the user the role you need — for example, we choose Org Owner (More about [ZITADEL Permissions](/guides/manage/console/administrators))
|
||||
|
||||

|
||||
@@ -34,7 +34,7 @@ To be able to access the ZITADEL APIs, your service user needs permissions to ZI
|
||||
## Accessing ZITADEL APIs
|
||||
|
||||
You might want to access ZITADEL APIs to manage resources, such as users, or to validate tokens sent to your backend service.
|
||||
Follow our guides on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) to use the ZITADEL APIs with your service user.
|
||||
Follow our guides on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) to use the ZITADEL APIs with your service account.
|
||||
|
||||
### Token introspection
|
||||
|
||||
@@ -45,7 +45,7 @@ Follow our [guide on token introspection with private key JWT](../token-introspe
|
||||
## Call ZITADEL API with PAT
|
||||
|
||||
Because the PAT is a ready-to-use token, you can add it as an Authorization Header and send it in your requests to the ZITADEL API.
|
||||
In this example we read the organization of the service user.
|
||||
In this example we read the organization of the service account.
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
@@ -55,7 +55,7 @@ curl --request GET \
|
||||
|
||||
## Client application authentication
|
||||
|
||||
The above steps demonstrate service user authentication.
|
||||
The above steps demonstrate service account authentication.
|
||||
If your application also needs to authenticate itself, you can utilize [Client Credentials Grant](./client-credentials).
|
||||
Refer to ZITADEL documentation for details on this alternative method.
|
||||
|
||||
@@ -65,4 +65,4 @@ Refer to ZITADEL documentation for details on this alternative method.
|
||||
* **Set appropriate JWT expiration times:** Limit the validity period of tokens to minimize the impact of potential compromise.
|
||||
* **Implement proper error handling:** Handle situations where JWT verification fails or tokens are expired.
|
||||
|
||||
By following these steps and adhering to security best practices, you can effectively secure service user and client application communication within ZITADEL using private key JWT authentication.
|
||||
By following these steps and adhering to security best practices, you can effectively secure service account and client application communication within ZITADEL using private key JWT authentication.
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
---
|
||||
title: Configure private key JWT authentication for service users
|
||||
title: Configure private key JWT authentication for service accounts
|
||||
sidebar_label: Private key JWT authentication
|
||||
---
|
||||
|
||||
This guide explains how developers can use private key JWT authentication to secure communication between service users and client applications in ZITADEL.
|
||||
This guide explains how developers can use private key JWT authentication to secure communication between service accounts and client applications in ZITADEL.
|
||||
|
||||
In ZITADEL, the `urn:ietf:params:oauth:grant-type:jwt-bearer` (**"JWT bearer token with private key"**, [RFC7523](https://tools.ietf.org/html/rfc7523)) authorization grant type is used for non-interactive authentication.
|
||||
|
||||
Read more about the [different authentication methods for service users](./authenticate-service-accounts), including their benefits, drawbacks, and security considerations.
|
||||
Read more about the [different authentication methods for service accounts](./authenticate-service-accounts), including their benefits, drawbacks, and security considerations.
|
||||
|
||||
#### How private key JWT authentication works
|
||||
|
||||
1. Generate a private/public key pair associated with the service user.
|
||||
1. Generate a private/public key pair associated with the service account.
|
||||
2. The authorization server stores the public key.
|
||||
3. The authorization server returns the private key as a JSON file.
|
||||
4. The developer configures the client application to use the private key.
|
||||
5. The client creates a JWT assertion with the subject set to the service user and signs the JWT with the private key.
|
||||
5. The client creates a JWT assertion with the subject set to the service account and signs the JWT with the private key.
|
||||
6. The client application requests a token from ZITADEL by sending the `client_assertion`.
|
||||
7. The authorization server validates the signature using the service user's public key.
|
||||
7. The authorization server validates the signature using the service account's public key.
|
||||
8. The authorization server returns an OAuth `access_token`.
|
||||
9. The client sends an API request, including the `access_token` in the Authorization header.
|
||||
10. The resource server validates the JWT with [token introspection](../token-introspection/).
|
||||
@@ -28,32 +28,32 @@ Read more about the [different authentication methods for service users](./authe
|
||||
|
||||
A code library or framework that supports JWT generation and verification (such as `pyjwt` for Python or `jsonwebtoken` for Node.js).
|
||||
|
||||
## Steps to authenticate a Service User with private JWT
|
||||
## Steps to authenticate a Service Account with private JWT
|
||||
|
||||
Follow these steps to authenticate a service user and obtain an access token for subsequent requests.
|
||||
Follow these steps to authenticate a service account and obtain an access token for subsequent requests.
|
||||
|
||||
### 1. Create a Service User
|
||||
### 1. Create a Service Account
|
||||
|
||||
1. Navigate to **Service Users**.
|
||||
1. Navigate to **Service Accounts**.
|
||||
2. Click on **New**.
|
||||
3. Enter a username and a display name.
|
||||
4. Click on **Create**.
|
||||
|
||||
### 2. Register a private key for your service user
|
||||
### 2. Register a private key for your service account
|
||||
|
||||
You can let ZITADEL generate a private key for you, **or** upload your own (externally generated) public key. Choose one of the following:
|
||||
|
||||
#### Option A: Generate and download a private key from ZITADEL
|
||||
|
||||
1. Open the ZITADEL web console and go to your service user.
|
||||
1. Open the ZITADEL web console and go to your service account.
|
||||
2. Click on the **Keys** tab.
|
||||
3. Click **New**.
|
||||
4. Optionally set an expiration date for the key, or leave empty for no expiration.
|
||||
5. Click **Download** and save the JSON key file securely.
|
||||
|
||||
#### Option B: Register an existing public key for your service user
|
||||
#### Option B: Register an existing public key for your service account
|
||||
|
||||
If you already have a key pair, you can upload the public key for your service user. For example, to generate a key pair using OpenSSL:
|
||||
If you already have a key pair, you can upload the public key for your service account. For example, to generate a key pair using OpenSSL:
|
||||
|
||||
```bash
|
||||
# generate key pair
|
||||
@@ -73,7 +73,7 @@ If you generate a key in ZITADEL, make sure to download and securely store the k
|
||||
If you set an expiration date when generating a key in ZITADEL, that key will expire at midnight on the specified day.
|
||||
</Callout>
|
||||
|
||||

|
||||

|
||||
|
||||
If you let ZITADEL generate a key for you and download the JSON file, it will look similar to the example below. In this ZITADEL-generated key file, the `key` property contains the _private_ key for your service account. Store this JSON securely and never share your private key. ZITADEL automatically stores the public key component, so you do not need to upload it.
|
||||
|
||||
@@ -130,7 +130,7 @@ There are also [many libraries](https://jwt.io/#libraries-io) available for gene
|
||||
import jwt
|
||||
import datetime
|
||||
|
||||
# Replace with your service user ID and private key
|
||||
# Replace with your service account ID and private key
|
||||
service_user_id = "your_service_user_id"
|
||||
private_key = "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----"
|
||||
key_id = "your_key_id"
|
||||
@@ -178,7 +178,7 @@ curl --request POST \
|
||||
If you want to access ZITADEL APIs, make sure to include the required scope `urn:zitadel:iam:org:project:id:zitadel:aud`.
|
||||
See our guide on [how to access ZITADEL APIs](../zitadel-apis/access-zitadel-apis) for more details.
|
||||
|
||||
**Important Note:** If the service user token must be validated using token introspection, you must include the `urn:zitadel:iam:org:project:id:{projectid}:aud` scope in your token request.
|
||||
**Important Note:** If the service account token must be validated using token introspection, you must include the `urn:zitadel:iam:org:project:id:{projectid}:aud` scope in your token request.
|
||||
If you do not include this, token introspection will fail.
|
||||
|
||||
A successful response will include the `access_token`, `token_type`, and the time to expiry in seconds (`expires_in`):
|
||||
@@ -196,7 +196,7 @@ Content-Type: application/json
|
||||
|
||||
### 5. Include the access token in the Authorization header
|
||||
|
||||
When making API requests as the service user, include the generated token in the "Authorization" header with the "Bearer" prefix.
|
||||
When making API requests as the service account, include the generated token in the "Authorization" header with the "Bearer" prefix.
|
||||
|
||||
```bash
|
||||
curl --request POST \
|
||||
@@ -208,7 +208,7 @@ curl --request POST \
|
||||
## Accessing ZITADEL APIs
|
||||
|
||||
You may use ZITADEL APIs to manage resources (e.g., users) or to validate tokens received by your backend service.
|
||||
Follow our guide on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) with your service user.
|
||||
Follow our guide on [how to access ZITADEL API](../zitadel-apis/access-zitadel-apis) with your service account.
|
||||
|
||||
### Token introspection
|
||||
|
||||
@@ -218,7 +218,7 @@ See our [guide on token introspection with private key JWT](../token-introspecti
|
||||
|
||||
## Client application authentication
|
||||
|
||||
The steps above describe service user authentication.
|
||||
The steps above describe service account authentication.
|
||||
If your application itself also needs authentication, you can use the [Client Credentials Grant](./client-credentials).
|
||||
See the ZITADEL documentation for additional details on this approach.
|
||||
|
||||
@@ -228,7 +228,7 @@ See the ZITADEL documentation for additional details on this approach.
|
||||
* **Set appropriate JWT expiration times:** Limit token validity to reduce risk in the event of a compromise.
|
||||
* **Implement proper error handling:** Handle cases where JWT verification fails or tokens are expired.
|
||||
|
||||
By following these steps and adhering to best practices, you can securely manage service user and client application authentication within ZITADEL using private key JWTs.
|
||||
By following these steps and adhering to best practices, you can securely manage service account and client application authentication within ZITADEL using private key JWTs.
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
@@ -23,16 +23,16 @@ If you have an API that behaves as an OAuth resource server that can be accessed
|
||||
- [JSON Web Token (JWT) Profile (Recommended)](/guides/integrate/token-introspection/private-key-jwt)
|
||||
- [Basic Authentication](/guides/integrate/token-introspection/basic-auth)
|
||||
|
||||
## Service users
|
||||
## Service accounts
|
||||
|
||||
If there are client APIs or systems that need to access other protected APIs, these APIs or systems must be declared as [service users](/guides/manage/console/users-overview).
|
||||
A service user is not considered an application type in ZITADEL.
|
||||
Read the introduction on how to [authenticate service users](/guides/integrate/service-accounts/authenticate-service-accounts).
|
||||
If there are client APIs or systems that need to access other protected APIs, these APIs or systems must be declared as [service accounts](/guides/manage/console/users-overview).
|
||||
A service account is not considered an application type in ZITADEL.
|
||||
Read the introduction on how to [authenticate service accounts](/guides/integrate/service-accounts/authenticate-service-accounts).
|
||||
|
||||
## Further references
|
||||
|
||||
- [Introspection API reference](/apis/openidoauth/endpoints#token-endpoint)
|
||||
- [JWT vs. opaque tokens](/concepts/knowledge/opaque-tokens)
|
||||
- [Python examples for securing an API and invoking it as a service user](https://github.com/zitadel/examples-api-access-and-token-introspection)
|
||||
- [Python examples for securing an API and invoking it as a service account](https://github.com/zitadel/examples-api-access-and-token-introspection)
|
||||
|
||||
<DocCardList />
|
||||
|
||||
@@ -7,7 +7,7 @@ import IntrospectionResponse from './_introspection-response.mdx';
|
||||
|
||||
This guide explains how to use ZITADEL's [Private Key JWT authentication method](/apis/openidoauth/authn-methods#jwt-with-private-key) to authenticate your application and call the token introspection endpoint. This is not about securing an API, but about allowing your backend to introspect access tokens in a secure way.
|
||||
|
||||
If you're looking to set up Private Key JWT authentication specifically for Service Users, see our dedicated guide [here](/guides/integrate/service-accounts/private-key-jwt).
|
||||
If you're looking to set up Private Key JWT authentication specifically for Service Accounts, see our dedicated guide [here](/guides/integrate/service-accounts/private-key-jwt).
|
||||
|
||||
## Register an Application & Generate a Key Pair
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
## Accessing ZITADEL APIs
|
||||
|
||||
In this step, we will authenticate a service user and receive an access_token to use against the ZITADEL API.
|
||||
In this step, we will authenticate a service account and receive an access_token to use against the ZITADEL API.
|
||||
|
||||
You will need to craft a POST request to ZITADEL's token endpoint:
|
||||
|
||||
@@ -32,7 +32,7 @@ Content-Type: application/json
|
||||
}
|
||||
```
|
||||
|
||||
In this step we will authenticate a service user and receive an access_token to use against the ZITADEL API.
|
||||
In this step we will authenticate a service account and receive an access_token to use against the ZITADEL API.
|
||||
|
||||
You will need to craft a POST request to ZITADEL's token endpoint:
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: Access ZITADEL APIs
|
||||
---
|
||||
|
||||
This guide explains what ZITADEL APIs are and how to access ZITADEL APIs using a service user to manage all types of resources and settings.
|
||||
This guide explains what ZITADEL APIs are and how to access ZITADEL APIs using a service account to manage all types of resources and settings.
|
||||
|
||||
## What are the ZITADEL APIs
|
||||
|
||||
@@ -27,15 +27,15 @@ For further details and in-depth exploration, you can refer to the [ZITADEL API
|
||||
|
||||
Accessing ZITADEL APIs, except for the Auth API and the System API, requires these basic steps:
|
||||
|
||||
1. **Create a service user**: A service user is a special type of account used to grant programmatic access to ZITADEL's functionalities. Unlike regular users who log in with a username and password, [service users rely on a more secure mechanism involving digital keys and tokens](../service-accounts/authenticate-service-accounts).
|
||||
2. **Give permission to access ZITADEL APIs**: Assign a Administrator role to the service user, giving it permission to make changes to certain resources in ZITADEL.
|
||||
1. **Create a service account**: A service account is a special type of account used to grant programmatic access to ZITADEL's functionalities. Unlike regular users who log in with a username and password, [service accounts rely on a more secure mechanism involving digital keys and tokens](../service-accounts/authenticate-service-accounts).
|
||||
2. **Give permission to access ZITADEL APIs**: Assign a Administrator role to the service account, giving it permission to make changes to certain resources in ZITADEL.
|
||||
3. **Authenticate the service account**: Like users, service accounts must authenticate and request an OAuth token with the scope `urn:zitadel:iam:org:project:id:zitadel:aud` to access ZITADEL APIs. [Service accounts can be authenticated](../service-accounts/authenticate-service-accounts) using private key JWT, client credentials, or personal access tokens.
|
||||
4. **Access ZITADEL APIs with the token**: The OAuth token must be included in the Authorization Header of calls to ZITADEL APIs.
|
||||
|
||||
### Accessing Auth API
|
||||
|
||||
The Auth API can be used for all operations on the requesting user, meaning the user id in the `sub` claim of the used token.
|
||||
Using this API doesn't require a service user to be authenticated.
|
||||
Using this API doesn't require a service account to be authenticated.
|
||||
Instead, you call the Auth API with the token of the user.
|
||||
|
||||
[Reference documentation for authentication API](/apis/introduction#authentication)
|
||||
@@ -43,24 +43,24 @@ Instead, you call the Auth API with the token of the user.
|
||||
### Accessing System API
|
||||
|
||||
With the System API developers can manage different ZITADEL instances.
|
||||
The System API can't be accessed by service users and requires a special configuration and authentication that can be found in our [guide to access ZITADEL's System API](./access-zitadel-system-api).
|
||||
The System API can't be accessed by service accounts and requires a special configuration and authentication that can be found in our [guide to access ZITADEL's System API](./access-zitadel-system-api).
|
||||
|
||||
[Reference documentation for system API](/apis/introduction#system)
|
||||
|
||||
## 1. Create a service user
|
||||
## 1. Create a service account
|
||||
|
||||
First, you need to create a new service user through the management console or ZITADEL APIs.
|
||||
First, you need to create a new service account through the management console or ZITADEL APIs.
|
||||
|
||||
Via Management Console:
|
||||
|
||||
1. In an organization, navigate to Users > Service Users
|
||||
1. In an organization, navigate to Users > Service Accounts
|
||||
2. Click on **New**
|
||||
3. Enter a username and a display name
|
||||
4. Click on **Create**
|
||||
|
||||
Via APIs23: * [Create User (Machine)](/reference/api/management/zitadel.management.v1.ManagementService.AddMachineUser)
|
||||
|
||||
## 2. Grant an Administrator Role to the Service User
|
||||
## 2. Grant an Administrator Role to the Service Account
|
||||
|
||||
ZITADEL Administrators are users who have permission to manage ZITADEL itself.
|
||||
There are different levels of administrators.
|
||||
@@ -72,21 +72,21 @@ There are different levels of administrators.
|
||||
|
||||
There are different roles on each level. You can find more about the different roles here: [ZITADEL Administrator Roles](/guides/manage/console/administrators#roles)
|
||||
|
||||
To be able to access the ZITADEL APIs, your service user needs permissions to ZITADEL.
|
||||
To be able to access the ZITADEL APIs, your service account needs permissions to ZITADEL.
|
||||
|
||||
1. Go to the detail page of your organization
|
||||
2. Click in the top right corner the "+" button
|
||||
3. Search for your service user
|
||||
3. Search for your service account
|
||||
4. Give the user the role you need — for example, we choose Org Owner (More about [ZITADEL Permissions](/guides/manage/console/administrators))
|
||||
|
||||

|
||||
|
||||
## 3. Authenticate service user and request token
|
||||
## 3. Authenticate service account and request token
|
||||
|
||||
Service users can be authenticated using private key JWT, client credentials, or personal access tokens.
|
||||
The [service user authentication](../service-accounts/authenticate-service-accounts) can be used to make machine-to-machine requests to any Resource Server (eg, a backend service / API) by requesting a token from the Authorization Server (ZITADEL) and sending the short-lived token (access token) in the Header of requests.
|
||||
Service accounts can be authenticated using private key JWT, client credentials, or personal access tokens.
|
||||
The [service account authentication](../service-accounts/authenticate-service-accounts) can be used to make machine-to-machine requests to any Resource Server (eg, a backend service / API) by requesting a token from the Authorization Server (ZITADEL) and sending the short-lived token (access token) in the Header of requests.
|
||||
|
||||
This guide covers a specific case of service user authentication when requesting access to the [ZITADEL APIs](/apis/introduction).
|
||||
This guide covers a specific case of service account authentication when requesting access to the [ZITADEL APIs](/apis/introduction).
|
||||
While PAT can be used directly to access the ZITADEL APIS, the more secure authentication methods private key JWT and client credentials must include the [reserved scope](/apis/openidoauth/scopes) `urn:zitadel:iam:org:project:id:zitadel:aud` when requesting an access from the token endpoint.
|
||||
This scope will add the ZITADEL APIs to the audience of the access token.
|
||||
ZITADEL APIs will check if they are in the audience of the access token and reject the token in case they are not in the audience.
|
||||
@@ -95,7 +95,7 @@ The following sections will explain the more specific authentication to access t
|
||||
|
||||
### Authenticate with private key JWT
|
||||
|
||||
Follow the steps in this guide to [generate a key file](../service-accounts/private-key-jwt#2-register-a-private-key-for-your-service-user) and [create a JWT and sign with private key](../service-accounts/private-key-jwt#3-create-a-jwt-and-sign-it-with-your-private-key).
|
||||
Follow the steps in this guide to [generate a key file](../service-accounts/private-key-jwt#2-register-a-private-key-for-your-service-account) and [create a JWT and sign with private key](../service-accounts/private-key-jwt#3-create-a-jwt-and-sign-it-with-your-private-key).
|
||||
|
||||
With the encoded JWT (assertion) from the prior step, you will need to craft a POST request to ZITADEL's token endpoint.
|
||||
|
||||
@@ -134,7 +134,7 @@ Content-Type: application/json
|
||||
```
|
||||
|
||||
Use the access_token in the Authorization header to make requests to the ZITADEL APIs.
|
||||
In the following example, we read the organization of the service user.
|
||||
In the following example, we read the organization of the service account.
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
@@ -146,11 +146,11 @@ curl --request GET \
|
||||
|
||||
Get the client id and client secret by
|
||||
|
||||
1. navigating to the service user, then
|
||||
1. navigating to the service account, then
|
||||
2. Open **Actions** in the top right corner and click on **Generate Client Secret**
|
||||
3. Copy the **ClientID** and **ClientSecret** from the dialog
|
||||
|
||||

|
||||

|
||||
|
||||
With the ClientId and ClientSecret from the prior step, you will need to craft a POST request to ZITADEL's token endpoint.
|
||||
|
||||
@@ -160,7 +160,7 @@ With the ClientId and ClientSecret from the prior step, you will need to craft a
|
||||
This is possible by sending a [reserved scope](/apis/openidoauth/scopes) for the audience.
|
||||
Use the scope `urn:zitadel:iam:org:project:id:zitadel:aud` to include the ZITADEL project id in your audience
|
||||
|
||||
In this step we will authenticate a service user and receive an access_token to use against the ZITADEL API.
|
||||
In this step we will authenticate a service account and receive an access_token to use against the ZITADEL API.
|
||||
|
||||
#### Basic authentication
|
||||
|
||||
@@ -206,7 +206,7 @@ Content-Type: application/json
|
||||
```
|
||||
|
||||
Because the received token includes the `urn:zitadel:iam:org:project:id:zitadel:aud` scope, we can send it in your requests to the ZITADEL API as the Authorization Header.
|
||||
In this example we read the organization of the service user.
|
||||
In this example, we read the organization of the service account.
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
@@ -219,7 +219,7 @@ curl --request GET \
|
||||
A Personal Access Token (PAT) is a ready-to-use token that can be used as an _Authorization_ header.
|
||||
|
||||
Because the PAT is a ready-to-use token, you can add it as an Authorization Header and send it in your requests to the ZITADEL API.
|
||||
In this example, we read the organization of the service user.
|
||||
In this example, we read the organization of the service account.
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
@@ -232,4 +232,4 @@ curl --request GET \
|
||||
- [Example application in Go](./example-zitadel-api-with-go) to access ZITADEL APIs
|
||||
- [Example application in .NET](./example-zitadel-api-with-dot-net) to access ZITADEL APIs
|
||||
- Learn how to use the [Event API](./event-api) to retrieve your audit trail
|
||||
- Read about the [different methods to authenticate service users](../service-accounts/authenticate-service-accounts)
|
||||
- Read about the [different methods to authenticate service accounts](../service-accounts/authenticate-service-accounts)
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ All that is required, is a service account with an Org Owner (or another role, d
|
||||
However, we recommend you read the guide on [how to access ZITADEL API](/guides/integrate/zitadel-apis/access-zitadel-apis) and the associated guides for a basic knowledge of :
|
||||
|
||||
- [Recommended Authorization Flows](/guides/integrate/login/oidc/oauth-recommended-flows)
|
||||
- [Service Users](/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
- [Service Accounts](/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
|
||||
> Be sure to have a valid key JSON and that its service account is either ORG_OWNER or at least ORG_OWNER_VIEWER before you continue with this guide.
|
||||
|
||||
@@ -107,7 +107,7 @@ To use the auth API you will not need a specific role, because only an authentic
|
||||
|
||||
For accessing the admin or management API the user will need some specific roles.
|
||||
If you encountered an error (e.g. `code = PermissionDenied desc = No matching permissions found`),
|
||||
ensure your service user has the required permissions by assigning the `ORG_OWNER` or `ORG_OWNER_VIEWER` role
|
||||
ensure your service account has the required permissions by assigning the `ORG_OWNER` or `ORG_OWNER_VIEWER` role
|
||||
and check the mentioned [guides](#prerequisites) at the beginning.
|
||||
|
||||
If you've run into any other problem, don't hesitate to contact us or raise an issue on [ZITADEL](https://github.com/zitadel/zitadel/issues) or in the [SDK](https://github.com/zitadel/zitadel-go/issues).
|
||||
|
||||
@@ -21,7 +21,7 @@ All that is required, is a service account with an Org Owner (or another role, d
|
||||
|
||||
However, we recommend you read the guide on [how to access ZITADEL API](/guides/integrate/zitadel-apis/access-zitadel-apis)) and the associated guides for a basic knowledge of :
|
||||
- [Recommended Authorization Flows](/guides/integrate/login/oidc/oauth-recommended-flows)
|
||||
- [Service Users](/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
- [Service Accounts](/guides/integrate/service-accounts/authenticate-service-accounts)
|
||||
|
||||
> Be sure to have a valid key JSON and that its service account is either ORG_OWNER or at least ORG_OWNER_VIEWER before you continue with this guide.
|
||||
|
||||
@@ -69,7 +69,7 @@ This will output something similar to:
|
||||
You have successfully used the ZITADEL Go SDK to call the management API!
|
||||
|
||||
If you encountered an error (e.g. `code = PermissionDenied desc = No matching permissions found`),
|
||||
ensure your service user has the required permissions by assigning the `ORG_OWNER` or `ORG_OWNER_VIEWER` role
|
||||
ensure your service account has the required permissions by assigning the `ORG_OWNER` or `ORG_OWNER_VIEWER` role
|
||||
and check the mentioned [guides](#prerequisites) at the beginning.
|
||||
|
||||
If you've run into any other problem, don't hesitate to contact us or raise an issue on [ZITADEL](https://github.com/zitadel/zitadel/issues) or in the [SDK](https://github.com/zitadel/zitadel-go/issues).
|
||||
|
||||
Reference in New Issue
Block a user