Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 703 for surname (0.06 seconds)

  1. tests/test_tutorial/test_request_form_models/test_tutorial002.py

    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    def test_post_body_extra_form(client: TestClient):
        response = client.post(
            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

        default String getLdapSecurityPrincipal(final String username) {
            final String value;
            final int maxLength = getLdapMaxUsernameLengthAsInteger();
            if (username == null) {
                value = StringUtil.EMPTY;
            } else if (maxLength >= 0 && username.length() > maxLength) {
                value = username.substring(0, maxLength);
            } else {
                value = username;
            }
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 88.2K bytes
    - Click Count (0)
  3. docs_src/security/tutorial003_py39.py

    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    def get_user(db, username: str):
        if username in db:
            user_dict = db[username]
            return UserInDB(**user_dict)
    
    
    def fake_decode_token(token):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. tests/test_security_openid_connect_description.py

    app = FastAPI()
    
    oid = OpenIdConnect(
        openIdConnectUrl="/openid", description="OpenIdConnect security scheme"
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(oid)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. docs_src/configure_swagger_ui/tutorial001_py39.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"syntaxHighlight": False})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 205 bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsAccessToken.java

            this.expiredTime = value;
        }
    
        public String getName() {
            checkSpecifiedProperty("name");
            return convertEmptyToNull(name);
        }
    
        public void setName(String value) {
            registerModifiedProperty("name");
            this.name = value;
        }
    
        public String getParameterName() {
            checkSpecifiedProperty("parameterName");
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  7. tests/test_filter_pydantic_sub_model_pv2.py

                        },
                        "ModelB": {
                            "title": "ModelB",
                            "required": ["username"],
                            "type": "object",
                            "properties": {
                                "username": {"title": "Username", "type": "string"}
                            },
                        },
                        "ValidationError": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            }
        }
    
        @Test
        @DisplayName("Test password stored as char array")
        void testPasswordStoredAsCharArray() throws Exception {
            authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", "password123");
    
            // Use reflection to verify password is stored as char[]
            Field passwordField = NtlmPasswordAuthenticator.class.getDeclaredField("password");
            passwordField.setAccessible(true);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/util/InputValidator.java

        }
    
        /**
         * Validates username
         *
         * @param username the username to validate
         * @throws IllegalArgumentException if username is invalid
         */
        public static void validateUsername(String username) {
            if (username == null) {
                return; // Null username allowed for anonymous
            }
            if (username.length() > MAX_USERNAME_LENGTH) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/NtlmUtil.java

         * Generates the NTOWFv2 hash for the given domain, username, and password.
         *
         * @param domain the authentication domain
         * @param username the username
         * @param password the password
         *
         * @return the calculated mac
         */
        public static byte[] nTOWFv2(final String domain, final String username, final String password) {
            return nTOWFv2(domain, username, getNTHash(password));
        }
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
Back to Top