Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,040 for userTime (0.2 sec)

  1. src/os/user/lookup_windows.go

    		}
    	}
    }
    
    // lookupUsernameAndDomain obtains the username and domain for usid.
    func lookupUsernameAndDomain(usid *syscall.SID) (username, domain string, e error) {
    	username, domain, t, e := usid.LookupAccount("")
    	if e != nil {
    		return "", "", e
    	}
    	if t != syscall.SidTypeUser {
    		return "", "", fmt.Errorf("user: should be user account type, not %d", t)
    	}
    	return username, domain, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. docs_src/security/tutorial007.py

                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    def read_current_user(username: str = Depends(get_current_username)):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 14:33:05 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/security_context_windows_test.go

    		desc     string
    		sc       *v1.SecurityContext
    		uid      *int64
    		username string
    		fail     bool
    	}{
    		{
    			desc:     "Pass if SecurityContext is not set",
    			sc:       nil,
    			username: rootUser,
    			fail:     false,
    		},
    		{
    			desc: "Pass if RunAsNonRoot is not set",
    			sc: &v1.SecurityContext{
    				RunAsNonRoot: nil,
    			},
    			username: rootUser,
    			fail:     false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 02:29:11 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  4. docs_src/security/tutorial007_an.py

                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    def read_current_user(username: Annotated[str, Depends(get_current_username)]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. tests/test_security_oauth2.py

            }
        }
    )
    
    
    class User(BaseModel):
        username: str
    
    
    # Here we use string annotations to test them
    def get_current_user(oauth_header: "str" = Security(reusable_oauth2)):
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    # Here we use string annotations to test them
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. tests/test_security_oauth2_optional_description.py

            }
        },
        description="OAuth2 security scheme",
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial003_01.py

                        "required": IsOneOf(
                            ["username", "email", "full_name"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username", "email"],
                        ),
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "email": {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ntlm/NTLMCredentialsTest.groovy

            credentials.username >> "domain/username"
            credentials.password >> "password"
    
            when:
            def ntlmCredentials = new NTLMCredentials(credentials)
    
            then:
            ntlmCredentials.domain == 'DOMAIN'
            ntlmCredentials.username == 'username'
            ntlmCredentials.password == 'password'
        }
    
        def "uses default domain when not encoded in username"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. docs_src/security/tutorial004.py

            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_data = TokenData(username=username)
        except InvalidTokenError:
            raise credentials_exception
        user = get_user(fake_users_db, username=token_data.username)
        if user is None:
            raise credentials_exception
        return user
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. docs_src/security/tutorial004_an_py310.py

            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_data = TokenData(username=username)
        except InvalidTokenError:
            raise credentials_exception
        user = get_user(fake_users_db, username=token_data.username)
        if user is None:
            raise credentials_exception
        return user
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top