Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 634 for USERNAME (0.32 seconds)

  1. docs_src/dependencies/tutorial008b_an_py310.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[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
    - 775 bytes
    - Click Count (0)
  2. docs_src/security/tutorial004_an_py310.py

            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username = 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
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

            }
            final String username = getUserBean().get().getUserId();
            try {
                userService.changePassword(username, form.password);
                saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL));
            } catch (final Exception e) {
                logger.warn("Failed to change password for user: username={}, error={}", username, e.getMessage(), e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java

                        final String username = paramMap.get(CRAWLER_FILE_AUTH + "." + fileAuthName + ".username");
                        final String password = paramMap.get(CRAWLER_FILE_AUTH + "." + fileAuthName + ".password");
    
                        if (StringUtil.isEmpty(username)) {
                            logger.warn("username is empty. fileAuth:{}", fileAuthName);
                            continue;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 10 01:38:30 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  5. .ci/init.gradle

      Closure configCache = {
        return {
          name "artifactory-gradle-release"
          url "https://artifactory.elstc.co/artifactory/gradle-release"
          credentials {
            username artifactoryCredentials.get("username")
            password artifactoryCredentials.get("token")
          }
        }
      }
      settingsEvaluated { settings ->
        settings.pluginManagement {
          repositories {
            maven configCache()
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Nov 13 10:14:04 GMT 2019
    - 3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/AuthenticationProvider.java

                this.domain = domain;
                this.authType = authType;
                this.timestamp = System.currentTimeMillis();
                this.clientAddress = clientAddress;
                this.serverAddress = serverAddress;
            }
    
            public String getUsername() {
                return username;
            }
    
            public String getDomain() {
                return domain;
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 3.9K bytes
    - Click Count (1)
  7. tests/test_security_openid_connect.py

    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid")
    
    
    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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  8. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  9. fastapi/security/oauth2.py

                    """
                ),
            ] = None,
            username: Annotated[
                str,
                Form(),
                Doc(
                    """
                    `username` string. The OAuth2 spec requires the exact field name
                    `username`.
    
                    Read more about it in the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:32:10 GMT 2026
    - 23.6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/exception/FessUserNotFoundException.java

        private static final long serialVersionUID = 1L;
    
        /**
         * Constructs a new FessUserNotFoundException with the specified username.
         *
         * @param username the username that was not found
         */
        public FessUserNotFoundException(final String username) {
            super("User is not found: " + username);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.3K bytes
    - Click Count (0)
Back to Top