mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-17 20:17:03 +02:00
Add tests for skip auth functionality
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ func buildSignInMessage(opts *options.Options) string {
|
||||
// SkipAuthRegex option (paths only support) or newer SkipAuthRoutes option
|
||||
// (method=path support)
|
||||
func buildRoutesAllowlist(opts *options.Options) ([]*allowedRoute, error) {
|
||||
var routes []*allowedRoute
|
||||
routes := make([]*allowedRoute, 0, len(opts.SkipAuthRegex)+len(opts.SkipAuthRoutes))
|
||||
|
||||
for _, path := range opts.SkipAuthRegex {
|
||||
compiledRegex, err := regexp.Compile(path)
|
||||
|
||||
Reference in New Issue
Block a user