feat: implement OIDC authentication for admin users (#316)
## Summary This PR implements OIDC authentication support for admin users, specifically configured for Google Cloud Identity. The implementation includes: - Configurable OIDC authentication endpoints and validation - Google Cloud Identity integration for admin access - JWT token validation and user session management - Deployment configuration updates for OIDC provider settings Fixes #283
This commit is contained in:
parent
4dd295a6f1
commit
36fcdff044
1 changed files with 704 additions and 6 deletions
|
|
@ -26,6 +26,15 @@ type Config struct {
|
|||
GithubClientSecret string `env:"GITHUB_CLIENT_SECRET" envDefault:""`
|
||||
JWTPrivateKey string `env:"JWT_PRIVATE_KEY" envDefault:""`
|
||||
EnableAnonymousAuth bool `env:"ENABLE_ANONYMOUS_AUTH" envDefault:"false"`
|
||||
|
||||
// OIDC Configuration
|
||||
OIDCEnabled bool `env:"OIDC_ENABLED" envDefault:"false"`
|
||||
OIDCIssuer string `env:"OIDC_ISSUER" envDefault:""`
|
||||
OIDCClientID string `env:"OIDC_CLIENT_ID" envDefault:""`
|
||||
OIDCClientSecret string `env:"OIDC_CLIENT_SECRET" envDefault:""`
|
||||
OIDCExtraClaims string `env:"OIDC_EXTRA_CLAIMS" envDefault:""`
|
||||
OIDCEditPerms string `env:"OIDC_EDIT_PERMISSIONS" envDefault:""`
|
||||
OIDCPublishPerms string `env:"OIDC_PUBLISH_PERMISSIONS" envDefault:""`
|
||||
}
|
||||
|
||||
// NewConfig creates a new configuration with default values
|
||||
|
|
|
|||
Loading…
Reference in a new issue