Deprecated: Update JWT Identity Provider (IDP)​
This endpoint has been deprecated and may be removed in future versions of the API.
Update the JWT-specific configuration of an identity provider. All fields will be updated. If a field has no value it will be empty afterward.
Path Parameters
Request Body required
Possible values: non-empty
and <= 200 characters
the endpoint where the jwt can be extracted
Possible values: non-empty
and <= 200 characters
the issuer of the jwt (for validation)
Possible values: non-empty
and <= 200 characters
the endpoint to the key (JWK) which is used to sign the JWT with
Possible values: <= 200 characters
the name of the header where the JWT is sent in, default is authorization
Request Body required
Possible values: non-empty
and <= 200 characters
the endpoint where the jwt can be extracted
Possible values: non-empty
and <= 200 characters
the issuer of the jwt (for validation)
Possible values: non-empty
and <= 200 characters
the endpoint to the key (JWK) which is used to sign the JWT with
Possible values: <= 200 characters
the name of the header where the JWT is sent in, default is authorization
Request Body required
Possible values: non-empty
and <= 200 characters
the endpoint where the jwt can be extracted
Possible values: non-empty
and <= 200 characters
the issuer of the jwt (for validation)
Possible values: non-empty
and <= 200 characters
the endpoint to the key (JWK) which is used to sign the JWT with
Possible values: <= 200 characters
the name of the header where the JWT is sent in, default is authorization
- 200
- 400
- 403
- 404
- 409
- default
JWT config updated
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-08T09:12:38.787Z",
"changeDate": "2024-04-08T09:12:38.787Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-08T09:12:38.787Z",
"changeDate": "2024-04-08T09:12:38.787Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-08T09:12:38.787Z",
"changeDate": "2024-04-08T09:12:38.787Z",
"resourceOwner": "69629023906488334"
}
}
invalid argument
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
precondition failed
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PUT /idps/:idpId/jwt_config
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'
curl -L -X PUT 'https://$CUSTOM-DOMAIN/admin/v1/idps/:idpId/jwt_config' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"jwtEndpoint": "https://custom.com/auth/jwt",
"issuer": "https://accounts.custom.com",
"keysEndpoint": "https://accounts.custom.com/keys",
"headerName": "x-auth-token"
}'