docs: add note about x-zitadel-login-client matching pat when building your login ui (#7521)

docs: add note about x-zitadel-login-client matching pat
This commit is contained in:
Fabi 2024-03-08 14:02:53 +01:00 committed by GitHub
parent 9f72fc63ac
commit fd39729089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,11 @@ https://login.example.com/oauth/v2/authorize?client_id=170086824411201793%40your
The auth request includes all the relevant information for the OIDC standard and in this example we also have a login hint for the login name "minnie-mouse". The auth request includes all the relevant information for the OIDC standard and in this example we also have a login hint for the login name "minnie-mouse".
You now have to proxy the auth request from your own UI to the authorize Endpoint of ZITADEL. You now have to proxy the auth request from your own UI to the authorize Endpoint of ZITADEL.
Make sure to add the user id of your login UI as a header to the request: ```x-zitadel-login-client: <userid>``` Make sure to add the user id of your login UI service/machine user as a header to the request: ```x-zitadel-login-client: <userid>```
:::note
The user id sent in the 'x-zitadel-login-client' has to match to the PAT you are sending in the request.
:::
Read more about the [Authorize Endpoint Documentation](/docs/apis/openidoauth/endpoints#authorization_endpoint) Read more about the [Authorize Endpoint Documentation](/docs/apis/openidoauth/endpoints#authorization_endpoint)