Update Identity Provider
PATCH
/identity-providers/{id}Update an identity provider's configuration.
Change OAuth settings, update client credentials, or modify allowed scopes.
Be careful-incorrect settings can break SSO login for all users of that
provider.
Test changes in a staging environment first if possible.
When to use this
- Rotating OAuth client credentials
- Updating redirect URLs after domain changes
- Enabling additional OAuth scopes
Parameters
idpathrequiredRequest Body
Response
Identity provider updated successfully
Notes
⚠️Incorrect settings can lock users out. Test thoroughly before updating production.
💡Keep the old client secret active until you've verified the new one works.
Code Samples
Update Identity Provider using the TypeScript SDK:
import { BackstageClient } from '@ticketlayer/backstage';
const client = new BackstageClient({
organisationSlug: 'your-org',
});
client.setAccessToken('YOUR_ACCESS_TOKEN');
// Update identityprovider
const updated = await client.identityprovider.update('{{IDENTITYPROVIDER_ID}}', {
name: 'Updated Name',
// Add fields to update
});
console.log(`Updated identityprovider: ${updated.name}`);