Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for Userinfo (0.15 sec)

  1. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    					Token: tc.token,
    				},
    			}
    
    			tokenReview.Status.Audiences = []string{}
    			if tc.token != invlidToken {
    				tokenReview.Status.Authenticated = true
    			}
    			tokenReview.Status.User = k8sauth.UserInfo{
    				Username: "system:serviceaccount:default:example-pod-sa",
    				Groups:   []string{"system:serviceaccounts"},
    			}
    
    			client := fake.NewSimpleClientset()
    			if !tc.remoteCluster {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go

    				}
    			}
    		})
    	}
    }
    
    func TestBuildUserType(t *testing.T) {
    	userDeclType := buildUserType()
    	userType := reflect.TypeOf(authenticationv1.UserInfo{})
    
    	if len(userDeclType.Fields) != userType.NumField() {
    		t.Errorf("expected %d fields, got %d", userType.NumField(), len(userDeclType.Fields))
    	}
    
    	for i := 0; i < userType.NumField(); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    func (store *IAMStoreSys) GetUsers() map[string]madmin.UserInfo {
    	cache := store.rlock()
    	defer store.runlock()
    
    	result := map[string]madmin.UserInfo{}
    	for k, u := range cache.iamUsersMap {
    		v := u.Credentials
    
    		if v.IsTemp() || v.IsServiceAccount() {
    			continue
    		}
    		pl, _ := cache.iamUserPolicyMap.Load(k)
    		result[k] = madmin.UserInfo{
    			PolicyName: pl.Policies,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  4. cmd/iam.go

    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	select {
    	case <-sys.configLoaded:
    		return sys.store.GetBucketUsers(bucket)
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    // ListUsers - list all users.
    func (sys *IAMSys) ListUsers(ctx context.Context) (map[string]madmin.UserInfo, error) {
    	if !sys.Initialized() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  5. internal/event/target/nats.go

    func (n NATSArgs) connectNats() (*nats.Conn, error) {
    	connOpts := []nats.Option{nats.Name("Minio Notification"), nats.MaxReconnects(-1)}
    	if n.Username != "" && n.Password != "" {
    		connOpts = append(connOpts, nats.UserInfo(n.Username, n.Password))
    	}
    	if n.UserCredentials != "" {
    		connOpts = append(connOpts, nats.UserCredentials(n.UserCredentials))
    	}
    	if n.Token != "" {
    		connOpts = append(connOpts, nats.Token(n.Token))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. internal/config/identity/openid/openid.go

    		if err != nil {
    			return c, err
    		}
    
    		if p.ClaimUserinfo && configURL == "" {
    			return c, errors.New("please specify config_url to enable fetching claims from UserInfo endpoint")
    		}
    
    		if scopeList := getCfgVal(Scopes); scopeList != "" {
    			var scopes []string
    			for _, scope := range strings.Split(scopeList, ",") {
    				scope = strings.TrimSpace(scope)
    				if scope == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. internal/rest/client.go

    	case offline:
    		// client offline, return last error captured.
    		return nil, &NetworkError{Err: c.LastError()}
    	}
    
    	// client is still connected, attempt the request.
    
    	// Shallow copy. We don't modify the *UserInfo, if set.
    	// All other fields are copied.
    	u := *c.url
    	u.Path = path.Join(u.Path, method)
    	u.RawQuery = values.Encode()
    
    	req, err := c.newRequest(ctx, u, body)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users_test.go

    	}
    	req, err := http.NewRequestWithContext(ctx, http.MethodPut, u.String(), nil)
    	if err != nil {
    		c.Fatalf("unexpected new request err: %v", err)
    	}
    	reqBodyArg := madmin.UserInfo{
    		SecretKey:  secretKey,
    		PolicyName: "consoleAdmin",
    		Status:     madmin.AccountEnabled,
    	}
    	buf, err := json.Marshal(reqBodyArg)
    	if err != nil {
    		c.Fatalf("unexpected json encode err: %v", err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  9. cmd/common-main.go

    			ClientSecret:            cfg.ClientSecret,
    			HMACSalt:                globalDeploymentID(),
    			HMACPassphrase:          cfg.ClientID,
    			Scopes:                  strings.Join(cfg.DiscoveryDoc.ScopesSupported, ","),
    			Userinfo:                cfg.ClaimUserinfo,
    			RedirectCallbackDynamic: cfg.RedirectURIDynamic,
    			RedirectCallback:        callback,
    			EndSessionEndpoint:      cfg.DiscoveryDoc.EndSessionEndpoint,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. src/net/url/url_test.go

    		},
    		"",
    	},
    	// leading // without scheme should create an authority
    	{
    		"//foo",
    		&URL{
    			Host: "foo",
    		},
    		"",
    	},
    	// leading // without scheme, with userinfo, path, and query
    	{
    		"//user@foo/path?a=b",
    		&URL{
    			User:     User("user"),
    			Host:     "foo",
    			Path:     "/path",
    			RawQuery: "a=b",
    		},
    		"",
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top