Skip to content

Commit

Permalink
docs: update external-login.mdx according to api spec (zitadel#9058)
Browse files Browse the repository at this point in the history
# Which Problems Are Solved

Documentation update

# Additional Context

The guide is outdate, a few fields from the given example confuse and
must be update according to the api spec:
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
  • Loading branch information
dennypenta and livio-a authored Jan 10, 2025
1 parent af09e51 commit b0bcb05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/docs/guides/integrate/login-ui/external-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ curl --request POST \
If you didn't get a user ID in the parameters of your success page, you know that there is no existing user in ZITADEL with that provider, and you can register a new user or link it to an existing account (read the next section).

Fill the IdP links in the create user request to add a user with an external login provider.
The idpId is the ID of the provider in ZITADEL, the idpExternalId is the ID of the user in the external identity provider; usually, this is sent in the “sub”.
The idpId is the ID of the provider in ZITADEL, the userId is the ID of the user in the external identity provider; usually, this is sent in the “sub”.
The display name is used to list the linkings on the users.

[Create User API Documentation](/docs/apis/resources/user_service_v2/user-service-add-human-user)
Expand Down Expand Up @@ -181,8 +181,8 @@ curl --request POST \
"idpLinks": [
{
"idpId": "218528353504723201",
"idpExternalId": "111392805975715856637",
"displayName": "Minnie Mouse"
"userId": "111392805975715856637",
"userName": "Minnie Mouse"
}
]
}'
Expand All @@ -205,8 +205,8 @@ curl --request POST \
--data '{
"idpLink": {
"idpId": "218528353504723201",
"idpExternalId": "1113928059757158566371",
"displayName": "Minnie Mouse"
"userId": "1113928059757158566371",
"userName": "Minnie Mouse"
}
}'
```

0 comments on commit b0bcb05

Please sign in to comment.