Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 718 for Users2 (0.44 sec)

  1. docs_src/dependencies/tutorial008e_an_py39.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: Annotated[str, Depends(get_username, scope="function")]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 03 10:12:49 UTC 2025
    - 329 bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/path-params.md

    Tel que `/users/me`, disons pour récupérer les données sur l'utilisateur actuel.
    
    Et vous avez un second chemin : `/users/{user_id}` pour récupérer de la donnée sur un utilisateur spécifique grâce à son identifiant d'utilisateur
    
    Les *fonctions de chemin* étant évaluées dans l'ordre, il faut s'assurer que la fonction correspondant à `/users/me` est déclarée avant celle de `/users/{user_id}` :
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. cmd/user-provider-utils.go

    	if !credentials.IsServiceAccount() && !credentials.IsTemp() {
    		return madmin.BuiltinProvider // regular users are always internal
    	}
    
    	claims := credentials.Claims
    	if _, ok := claims[ldapUser]; ok {
    		return madmin.LDAPProvider // ldap users
    	}
    
    	if _, ok := claims[subClaim]; ok {
    		providerPrefix, _, found := strings.Cut(credentials.ParentUser, getKeySeparator())
    		if found {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. tests/soft_delete_test.go

    		t.Fatalf("user's deleted at is zero")
    	}
    
    	sql := DB.Session(&gorm.Session{DryRun: true}).Delete(&user).Statement.SQL.String()
    	if !regexp.MustCompile(`UPDATE .users. SET .deleted_at.=.* WHERE .users.\..id. = .* AND .users.\..deleted_at. IS NULL`).MatchString(sql) {
    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. tests/main_test.go

    		t.Errorf("Should got error with invalid SQL")
    	}
    
    	var count1, count2 int64
    	DB.Model(&User{}).Count(&count1)
    	if count1 <= 0 {
    		t.Errorf("Should find some users")
    	}
    
    	if DB.Where("name = ?", "jinzhu; delete * from users").First(&User{}).Error == nil {
    		t.Errorf("Should got error with invalid SQL")
    	}
    
    	DB.Model(&User{}).Count(&count2)
    	if count1 != count2 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Mar 24 01:31:58 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    					return true
    				}
    			}
    			if pset.Contains(policy) {
    				users = append(users, u)
    			}
    			return true
    		})
    		cache.iamGroupPolicyMap.Range(func(g string, mp MappedPolicy) bool {
    			pset := mp.policySet()
    			if pset.Contains(policy) {
    				groups = append(groups, g)
    			}
    			return true
    		})
    		if len(users) != 0 || len(groups) != 0 {
    			return errPolicyInUse
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 87.1K bytes
    - Viewed (0)
  7. helm/minio/templates/post-job.yaml

    {{- if or .Values.buckets .Values.users .Values.policies .Values.customCommands .Values.svcaccts }}
    apiVersion: batch/v1
    kind: Job
    metadata:
      name: {{ template "minio.fullname" . }}-post-job
      labels:
        app: {{ template "minio.name" . }}-post-job
        chart: {{ template "minio.chart" . }}
        release: {{ .Release.Name }}
        heritage: {{ .Release.Service }}
      annotations:
        "helm.sh/hook": post-install,post-upgrade
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Oct 10 15:48:31 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/iam-etcd-store.go

    	users := set.NewStringSet()
    	for _, kv := range kvs {
    		user := extractPathPrefixAndSuffix(string(kv.Key), prefix, path.Base(string(kv.Key)))
    		users.Add(user)
    	}
    	return users
    }
    
    // Extract path string by stripping off the `prefix` value and the suffix,
    // value, usually in the following form.
    //
    //	s := "config/iam/users/foo/config.json"
    //	prefix := "config/iam/users/"
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  9. helm-releases/minio-3.6.4.tgz

    Create user after install Install the chart, specifying the users you want to create after install: ```bash helm install --set users[0].accessKey=accessKey,users[0].secretKey=secretKey,users[0].policy=none,users[1].accessKey=accessKey2,users[1].secretRef=existingSecret,users[1].secretKey=password,users[1].policy=none minio/minio ``` Description of the configuration parameters used above - - `users[].accessKey` - accessKey of user - `users[].secretKey` - secretKey of usersecretRef - `users[].existingSecret`...
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Apr 12 01:30:28 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/security/oauth2-scopes.md

    If you don't select any scope, you will be "authenticated", but when you try to access `/users/me/` or `/users/me/items/` you will get an error saying that you don't have enough permissions. You will still be able to access `/status/`.
    
    And if you select the scope `me` but not the scope `items`, you will be able to access `/users/me/` but not `/users/me/items/`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 13.5K bytes
    - Viewed (0)
Back to top