Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewAuthenticator (0.2 sec)

  1. pkg/kubeapiserver/authenticator/config.go

    				In:          "header",
    				Description: "Bearer Token authentication",
    			},
    		}
    	}
    
    	if len(authenticators) == 0 {
    		if config.Anonymous {
    			return anonymous.NewAuthenticator(), nil, &securityDefinitionsV2, securitySchemesV3, nil
    		}
    		return nil, nil, &securityDefinitionsV2, securitySchemesV3, nil
    	}
    
    	authenticator := union.New(authenticators...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go

    			case "known":
    				return &authenticator.Response{User: &user.DefaultInfo{Name: "panda"}}, true, nil
    			case "error":
    				return nil, false, errors.New("authn err")
    			case "anonymous":
    				return anonymous.NewAuthenticator().AuthenticateRequest(r)
    			case "anonymous_group":
    				return &authenticator.Response{User: &user.DefaultInfo{Groups: []string{user.AllUnauthenticated}}}, true, nil
    			default:
    				return nil, false, nil
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top