Compare commits

..

2 Commits

Author SHA1 Message Date
Taras Glek 4170d2175a
Merge 7eee61b808 into 6c36f525f9 2025-04-17 06:36:49 +00:00
Taras Glek 7eee61b808 feat(oidc-auth): support empty OIDC client secret 2025-04-17 09:36:17 +03:00
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -113,7 +113,6 @@ 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 {