Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 135 for Feyrer (0.19 sec)

  1. docs_src/security/tutorial003_an.py

        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(
        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. docs_src/security/tutorial003_an_py310.py

        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(
        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. docs_src/security/tutorial003_py310.py

        if not user:
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Invalid authentication credentials",
                headers={"WWW-Authenticate": "Bearer"},
            )
        return user
    
    
    async def get_current_active_user(current_user: User = Depends(get_current_user)):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  4. docs/metrics/prometheus/README.md

    ##### Cluster
    
    ```yaml
    scrape_configs:
    - job_name: minio-job
      bearer_token: <secret>
      metrics_path: /minio/v2/metrics/cluster
      scheme: http
      static_configs:
      - targets: ['localhost:9000']
    ```
    
    ##### Bucket centric
    
    ```yaml
    - job_name: minio-job-bucket
      bearer_token: <secret>
      metrics_path: /minio/v2/metrics/bucket
      scheme: http
      static_configs:
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 15:49:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial004_an_py310.py

                headers={"WWW-Authenticate": "Bearer"},
            )
        access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
        access_token = create_access_token(
            data={"sub": user.username}, expires_delta=access_token_expires
        )
        return Token(access_token=access_token, token_type="bearer")
    
    
    @app.get("/users/me/", response_model=User)
    async def read_users_me(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/security/index.md

    โš™๏ธ ๐Ÿ‘ซ, ๐Ÿ‘† ๐Ÿ’ช โœŠ ๐Ÿ“ˆ ๐ŸŒ ๐Ÿ‘ซ ๐Ÿฉ-โš“๏ธ ๐Ÿงฐ, ๐Ÿ”Œ ๐Ÿ‘‰ ๐ŸŽ“ ๐Ÿงพ โš™๏ธ.
    
    ๐Ÿ—„ ๐Ÿ”ฌ ๐Ÿ“„ ๐Ÿ’‚โ€โ™‚ โš–:
    
    * `apiKey`: ๐Ÿˆธ ๐ŸŽฏ ๐Ÿ”‘ ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿ‘Ÿ โšช๏ธโžก๏ธ:
        * ๐Ÿ”ข ๐Ÿ”ข.
        * ๐ŸŽš.
        * ๐Ÿช.
    * `http`: ๐Ÿฉ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿค โš™๏ธ, ๐Ÿ”Œ:
        * `bearer`: ๐ŸŽš `Authorization` โฎ๏ธ ๐Ÿ’ฒ `Bearer ` โž• ๐Ÿค. ๐Ÿ‘‰ ๐Ÿ˜– โšช๏ธโžก๏ธ Oauth2๏ธโƒฃ.
        * ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ”ฐ ๐Ÿค.
        * ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ“ฐ, โ™’๏ธ.
    * `oauth2`: ๐ŸŒ Oauth2๏ธโƒฃ ๐ŸŒŒ ๐Ÿต ๐Ÿ’‚โ€โ™‚ (๐Ÿค™ "๐Ÿ’ง").
        * ๐Ÿ“š ๐Ÿ‘ซ ๐Ÿ’ง โ˜‘ ๐Ÿ— โœณ 2๏ธโƒฃ.0๏ธโƒฃ ๐Ÿค ๐Ÿ•โ€๐Ÿฆบ (๐Ÿ’– ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ”, ๐Ÿ‘ฑ๐Ÿ“”, ๐Ÿ‘ฑ๐Ÿ“”, ๐Ÿ“‚, โ™’๏ธ):
            * `implicit`
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/security/first-steps.md

    * ๐Ÿ•ธ ๐Ÿช ๐Ÿ‘ˆ ๐Ÿค ๐Ÿ• ๐Ÿ‘ฑ.
    * ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ–Š ๐Ÿ•ธ ๐Ÿšถ โž•1๏ธโƒฃ ๐Ÿ“„ ๐Ÿ•ธ ๐Ÿ•ธ ๐Ÿ“ฑ.
    * ๐Ÿ•ธ ๐Ÿ’ช โ˜• ๐ŸŒ… ๐Ÿ’ฝ โšช๏ธโžก๏ธ ๐Ÿ› ๏ธ.
        * โœ‹๏ธ โšซ๏ธ ๐Ÿ’ช ๐Ÿค ๐Ÿ‘ˆ ๐ŸŽฏ ๐Ÿ”—.
        * , ๐Ÿ”“ โฎ๏ธ ๐Ÿ‘† ๐Ÿ› ๏ธ, โšซ๏ธ ๐Ÿ“จ ๐ŸŽš `Authorization` โฎ๏ธ ๐Ÿ’ฒ `Bearer ` โž• ๐Ÿค.
        * ๐Ÿšฅ ๐Ÿค ๐Ÿ”Œ `foobar`, ๐ŸŽš `Authorization` ๐ŸŽš ๐Ÿ”œ: `Bearer foobar`.
    
    ## **FastAPI**'โ“‚ `OAuth2PasswordBearer`
    
    **FastAPI** ๐Ÿšš ๐Ÿ“š ๐Ÿงฐ, ๐ŸŽ ๐ŸŽš โš›, ๐Ÿ› ๏ธ ๐Ÿ‘ซ ๐Ÿ’‚โ€โ™‚ โš’.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/first-steps.md

        * But it needs authentication for that specific endpoint.
        * So, to authenticate with our API, it sends a header `Authorization` with a value of `Bearer ` plus the token.
        * If the token contains `foobar`, the content of the `Authorization` header would be: `Bearer foobar`.
    
    ## **FastAPI**'s `OAuth2PasswordBearer`
    
    **FastAPI** provides several tools, at different levels of abstraction, to implement these security features.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. internal/config/lambda/target/webhook.go

    	// <Key> <Token> like format, if this is
    	// already present we can blindly use the
    	// authToken as is instead of adding 'Bearer'
    	tokens := strings.Fields(target.args.AuthToken)
    	switch len(tokens) {
    	case 2:
    		req.Header.Set("Authorization", target.args.AuthToken)
    	case 1:
    		req.Header.Set("Authorization", "Bearer "+target.args.AuthToken)
    	}
    
    	req.Header.Set("Content-Type", "application/json")
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Nov 17 20:02:26 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  10. tests/test_security_oauth2.py

        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.7K bytes
    - Viewed (0)
Back to top