Address PR review feedback for OIDC login
- Remove sensitive nonce values from error messages to prevent logging leaks - Guard ticker intervals against non-positive durations in SAML domain verifier and garbage collector to prevent panics - Require both client ID and client secret for Google/Microsoft OIDC providers to be marked as enabled - Replace http.DefaultClient with kit/httpclient for JWKS fetching to ensure proper timeouts - Fix eslint indentation in SignInPage OIDC button click handler Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -113,12 +113,12 @@ func (b *Builder) Build() (*probod.FullConfig, error) {
|
||||
Google: probod.OIDCProviderConfig{
|
||||
ClientID: b.getEnv("AUTH_GOOGLE_CLIENT_ID"),
|
||||
ClientSecret: b.getEnv("AUTH_GOOGLE_CLIENT_SECRET"),
|
||||
Enabled: b.getEnv("AUTH_GOOGLE_CLIENT_ID") != "",
|
||||
Enabled: b.getEnv("AUTH_GOOGLE_CLIENT_ID") != "" && b.getEnv("AUTH_GOOGLE_CLIENT_SECRET") != "",
|
||||
},
|
||||
Microsoft: probod.OIDCProviderConfig{
|
||||
ClientID: b.getEnv("AUTH_MICROSOFT_CLIENT_ID"),
|
||||
ClientSecret: b.getEnv("AUTH_MICROSOFT_CLIENT_SECRET"),
|
||||
Enabled: b.getEnv("AUTH_MICROSOFT_CLIENT_ID") != "",
|
||||
Enabled: b.getEnv("AUTH_MICROSOFT_CLIENT_ID") != "" && b.getEnv("AUTH_MICROSOFT_CLIENT_SECRET") != "",
|
||||
},
|
||||
},
|
||||
TrustCenter: probod.TrustCenterConfig{
|
||||
|
||||
Reference in New Issue
Block a user