mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 00:29:03 +01:00
api: add DEBUG_DISABLE_AUTH for debugging
This commit is contained in:
@@ -31,7 +31,7 @@ func GetDefaultAuth() Provider {
|
||||
}
|
||||
|
||||
func IsEnabled() bool {
|
||||
return common.APIJWTSecret != nil || IsOIDCEnabled()
|
||||
return !common.DebugDisableAuth && (common.APIJWTSecret != nil || IsOIDCEnabled())
|
||||
}
|
||||
|
||||
func IsOIDCEnabled() bool {
|
||||
|
||||
Reference in New Issue
Block a user