Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 600 for user_me (0.04 seconds)

  1. 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)
  2. internal/event/target/kafka_scram_client_contrib.go

    // factory receiver.  This constructor will normalize the username, password
    // and authzID via the SASLprep algorithm, as recommended by RFC-5802.  If
    // SASLprep fails, the method returns an error.
    func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
    	x.Client, err = x.NewClient(userName, password, authzID)
    	if err != nil {
    		return err
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/auth/AuthenticationManager.java

         * @param username The username for which to change the password.
         * @param password The new password.
         * @return True if the password was successfully changed in all chains, false otherwise.
         */
        public boolean changePassword(final String username, final String password) {
            return chains().get(stream -> stream.allMatch(c -> c.changePassword(username, password)));
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/cbean/ca/bs/BsWebAuthenticationCA.java

        public void setUsername_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda) {
            setUsername_Terms("username", opLambda, null);
        }
    
        public void setUsername_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsWebAuthenticationCA> aggsLambda) {
            setUsername_Terms("username", opLambda, aggsLambda);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 76.2K bytes
    - Click Count (0)
  5. fastapi/security/http.py

            except (ValueError, UnicodeDecodeError, binascii.Error) as e:
                raise self.make_not_authenticated_error() from e
            username, separator, password = data.partition(":")
            if not separator:
                raise self.make_not_authenticated_error()
            return HTTPBasicCredentials(username=username, password=password)
    
    
    class HTTPBearer(HTTPBase):
        """
        HTTP Bearer token authentication.
    
        ## Usage
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. tests/test_security_api_key_query.py

    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyQuery(name="key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        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
    - 2K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/security/simple-oauth2.md

    ## Obtenir `username` et `password` { #get-the-username-and-password }
    
    Nous allons utiliser les utilités de sécurité de **FastAPI** pour obtenir `username` et `password`.
    
    OAuth2 spécifie que lorsqu'on utilise le « password flow » (ce que nous utilisons), le client/utilisateur doit envoyer des champs `username` et `password` en tant que données de formulaire.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/security/simple-oauth2.md

    ## Obtenha o `username` e a `password` { #get-the-username-and-password }
    
    É utilizado o utils de segurança da **FastAPI** para obter o `username` e a `password`.
    
    OAuth2 especifica que ao usar o "password flow" (fluxo de senha), que estamos usando, o cliente/usuário deve enviar os campos `username` e `password` como dados do formulário.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  9. tests/test_security_api_key_header_optional.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyHeader(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 | None = Depends(get_current_user)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt

    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
        return "Basic $encoded"
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.1K bytes
    - Click Count (0)
Back to Top