mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved - Typos - Punctuation - Markdown table formatting - ... (A bunch of issues my editor gave) # How the Problems Are Solved # Additional Changes # Additional Context
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
1. Go to the **Users** tab in your organization as shown below and click on the **Service Users** tab.
|
|
|
|

|
|
|
|
2. To add a service user, click on the **New** button.
|
|
|
|

|
|
|
|
3. Next, add the details of the service user and select either **Bearer** or **JWT** for **Access Token Type** and click on **Create**. For this example, we will select **JWT**.
|
|
|
|

|
|
|
|
4. Now you will see the saved details.
|
|
|
|

|
|
|
|
5. Next, we need to generate a private-public key pair in ZITADEL and you must get the private key to sign your JWT. Go to **Keys** and click on **New**.
|
|
|
|

|
|
|
|
6. Select type **JSON** and click **Add**.
|
|
|
|

|
|
|
|
7. Download the key by clicking **Download**. After the download, click **Close**.
|
|
|
|

|
|
|
|
8. You will see the following screen afterward.
|
|
|
|

|
|
|
|
9. The downloaded key will be of the following format:
|
|
|
|
```
|
|
{
|
|
"type":"serviceaccount",
|
|
"keyId":"<YOUR_KEY_ID>",
|
|
"key":"-----BEGIN RSA PRIVATE KEY-----\n<YOUR_KEY>\n-----END RSA PRIVATE KEY-----\n",
|
|
"userId":"<YOUR_USER_ID>"
|
|
}
|
|
```
|