Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,040 for userTime (0.12 sec)

  1. tests/test_tutorial/test_security/test_tutorial003_an.py

        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username():
        response = client.post("/token", data={"username": "foo", "password": "secret"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_no_token():
        response = client.get("/users/me")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ParallelDownloadsOnAuthenticatedRepoIntegrationTest.groovy

    class ParallelDownloadsOnAuthenticatedRepoIntegrationTest extends ParallelDownloadsIntegrationTest {
        private final static String USERNAME = 'username'
        private final static String PASSWORD = 'password'
    
        String getAuthConfig() {
            """
            credentials {
                username = '$USERNAME'
                password = '$PASSWORD'
            }
    
            authentication {
                auth(BasicAuthentication)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/credentials-handling/pass-credentials-to-external-tool-via-stdin/common/login.sh

    #!/bin/bash
    
    echo Enter username:
    read username
    echo Enter password:
    if [ -t 0 ] ; then # if connected to a terminal, do not echo the password input
        stty -echo
        read password
        stty echo
        echo
    else
        read password
    fi
    
    if [ "$username" = "secret-user" ] && [ "$password" = "secret-password" ] ; then
        echo "Welcome, $username!"
    else
        echo "Bad credentials!"
        exit 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 391 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial005.py

                        "required": IsOneOf(
                            ["username", "email", "full_name", "disabled"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username"],
                        ),
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "email": IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_an_py39.py

                        "required": IsOneOf(
                            ["username", "email", "full_name", "disabled"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username"],
                        ),
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "email": IsDict(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. docs_src/security/tutorial004_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
    - 4K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/DefaultHttpBuildCacheServiceFactoryTest.groovy

        def "extract username and password from userinfo #userinfo"() {
            when:
            def credentials = extractCredentialsFromUserInfo(new URI("https://${userinfo}@myserver.local"))
    
            then:
            credentials.username == username
            credentials.password == password
    
            where:
            userinfo                             | username   | password
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

        public void update(final User user) {
            final String username = user.getName();
            final String password = user.getOriginalPassword();
            changePassword(username, password);
        }
    
        @Override
        public void delete(final User user) {
            final String username = user.getName();
            if (isTargetUser(username)) {
                executeCommand(deleteCommand, username, StringUtil.EMPTY);
            }
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. pkg/credentialprovider/plugin/plugin_test.go

    					auth: map[string]credentialproviderapi.AuthConfig{
    						"test.registry.io": {
    							Username: "user",
    							Password: "password",
    						},
    					},
    				},
    			},
    			image: "test.registry.io/foo/bar",
    			dockerconfig: credentialprovider.DockerConfig{
    				"test.registry.io": credentialprovider.DockerConfigEntry{
    					Username: "user",
    					Password: "password",
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 09 06:11:06 UTC 2022
    - 26.5K bytes
    - Viewed (0)
  10. docs_src/security/tutorial005_py310.py

    
    def get_password_hash(password):
        return pwd_context.hash(password)
    
    
    def get_user(db, username: str):
        if username in db:
            user_dict = db[username]
            return UserInDB(**user_dict)
    
    
    def authenticate_user(fake_db, username: str, password: str):
        user = get_user(fake_db, username)
        if not user:
            return False
        if not verify_password(password, user.hashed_password):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top