authSourceJWTUpdate
Updates an existing JWT authentication source. When using the mutation, specifying an empty or null array of roles or audiences will remove any roles or audiences that may have been previously set. A complete list of roles and audiences needs to be sent in the mutation to update roles and audiences.
Input Parameters:
authSourceJWT: JWT authentication source update configuration including ID and modified fields.
Response:
- Returns the updated JWT authentication source with all configuration details.
Example Request:
mutation {
authSourceJWTUpdate(authSourceJWT: {
id: "<xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx>",
name: "Updated JWT Auth Source",
issuer: "https://auth.updated.com",
details: {
description: "Updated JWT authentication for API access",
groupsAttribute: "user_groups",
roles: ["admin", "user", "viewer"],
audiences: ["aud1", "aud2"],
userIdClaim: "sub"
}
}) {
id,
name,
description,
issuer,
jwksUrl,
groupsAttribute,
audiences,
userIdClaim,
roles {
id,
name
}
}
}
authSourceJWTUpdate(
authSourceJWT: AuthSourceJWTUpdateInput!
): AuthSourceJWT!
Arguments
authSourceJWTUpdate.authSourceJWT ● AuthSourceJWTUpdateInput! non-null input platform
Type
AuthSourceJWT object platform
A JWT authentication source that can be used to secure APIs or Developer Portals
Was this topic helpful?