Compare commits

..

2 Commits

Author SHA1 Message Date
Taras Glek a1e27269c6
Merge 94f8271c81 into 6c36f525f9 2025-04-16 11:01:45 +03:00
Taras Glek (aider) 94f8271c81 feat: support empty OIDC client secret with 'none' auth method 2025-04-16 10:55:48 +03:00
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +0,0 @@
---
'@hono/oidc-auth': major
---
Support empty OIDC_CLIENT_SECRET

View File

@ -113,6 +113,7 @@ const setOidcAuthEnv = (c: Context, config?: Partial<OidcAuthEnv>) => {
if (oidcAuthEnv.OIDC_CLIENT_SECRET === undefined) {
throw new HTTPException(500, { message: 'OIDC client secret is not provided' })
}
// Allow empty string as valid client secret
oidcAuthEnv.OIDC_REDIRECT_URI = oidcAuthEnv.OIDC_REDIRECT_URI ?? defaultOidcRedirectUri
if (!oidcAuthEnv.OIDC_REDIRECT_URI.startsWith('/')) {
try {