goauthentik / goauthentik/authentik

Regenerate client secret” button for OAuth2/OpenID providers

Open
#23,489 0 comments 2 reactions 1 assignee Claimed by @dominic-r View on GitHub
enhancement enhancement/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

### Is your feature request related to a problem?

When rotating an OIDC client secret today, the Client Secret field appears to support reveal/hide, but there is no obvious regenerate action. The admin has to manually generate a new secret outside Authentik, paste it into the provider, save it, then update the relying application. This works, but it is easy to miss and feels less safe than a built-in rotation workflow.

### Describe the solution you'd like

Add a button next to the Client Secret field, similar to:

- “Regenerate”
- confirmation dialog: “This will immediately invalidate the current client secret. Applications using this provider will fail authentication until updated.”
- generate a strong random secret server-side
- show/copy the new secret after regeneration
- save/update the provider

Why it helps:
This improves security hygiene, makes client-secret rotation discoverable, and reduces the chance of weak or incorrectly generated secrets.

### Describe alternatives that you've considered

The only other method I'm aware of is going to a shell and using openssl to manually create a new secret and paste it in.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.