Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 639 for USERNAME (0.09 seconds)

  1. tests/test_security_api_key_cookie_optional.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str | None = Security(api_key)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/security/first-steps.md

    So, let's review it from that simplified point of view:
    
    * The user types the `username` and `password` in the frontend, and hits `Enter`.
    * The frontend (running in the user's browser) sends that `username` and `password` to a specific URL in our API (declared with `tokenUrl="token"`).
    * The API checks that `username` and `password`, and responds with a "token" (we haven't implemented any of this yet).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  3. docs/ja/docs/tutorial/security/simple-oauth2.md

    # パスワードとBearerによるシンプルなOAuth2 { #simple-oauth2-with-password-and-bearer }
    
    前章から発展させて、完全なセキュリティフローに必要な不足部分を追加していきます。
    
    ## `username` と `password` を取得する { #get-the-username-and-password }
    
    `username` と `password` を取得するために **FastAPI** のセキュリティユーティリティを使います。
    
    OAuth2 では、「password flow」(ここで使用するフロー)を使う場合、クライアント/ユーザーはフォームデータとして `username` と `password` フィールドを送信する必要があります。
    
    しかも、フィールド名はこの通りでなければなりません。つまり、`user-name` や `email` では動作しません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsFileAuthentication.java

            this.updatedTime = value;
        }
    
        public String getUsername() {
            checkSpecifiedProperty("username");
            return convertEmptyToNull(username);
        }
    
        public void setUsername(String value) {
            registerModifiedProperty("username");
            this.username = value;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. docs_src/dependencies/tutorial008b_py310.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 735 bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

            assertTrue(testLdapManager.applyCalled);
        }
    
        // Helper method to create test user
        private User createTestUser(String username, String password) {
            User user = new User();
            user.setName(username);
            user.setPassword(password);
            user.setRoles(new String[] { "role1", "role2" });
            user.setGroups(new String[] { "group1", "group2" });
            return user;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/opensearch/config/bsentity/BsWebAuthentication.java

            this.updatedTime = value;
        }
    
        public String getUsername() {
            checkSpecifiedProperty("username");
            return convertEmptyToNull(username);
        }
    
        public void setUsername(String value) {
            registerModifiedProperty("username");
            this.username = value;
        }
    
        public String getWebConfigId() {
            checkSpecifiedProperty("webConfigId");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 9K bytes
    - Click Count (0)
  8. src/main/webapp/WEB-INF/view/admin/fileauth/admin_fileauth_edit.jsp

                                        <label for="username" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.file_auth_username"/></label>
                                        <div class="col-sm-9">
                                            <la:errors property="username"/>
                                            <la:text styleId="username" property="username" styleClass="form-control"/>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java

         *
         * @param form the create form
         * @param username the current username
         * @param currentTime the current time
         * @return optional key match entity
         */
        public static OptionalEntity<KeyMatch> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

                @Override
                public boolean isLdapAdminEnabled(String username) {
                    return true;
                }
            });
            LdapManager ldapManager = new LdapManager();
            ldapManager.init();
    
            // Null username should return false
            assertFalse(ldapManager.changePassword(null, "newPassword"));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
Back to Top