Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for myrealm (0.41 sec)

  1. fastapi/security/http.py

            self.realm = realm
            self.auto_error = auto_error
    
        async def __call__(  # type: ignore
            self, request: Request
        ) -> Optional[HTTPBasicCredentials]:
            authorization = request.headers.get("Authorization")
            scheme, param = get_authorization_scheme_param(authorization)
            if self.realm:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. tests/test_security_http_basic_realm_description.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. tests/test_security_http_basic_realm.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/security/http-basic-auth.md

    # ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ”ฐ ๐Ÿ”
    
    ๐Ÿ™… ๐Ÿ’ผ, ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ”ฐ ๐Ÿ”.
    
    ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ”ฐ ๐Ÿ”, ๐Ÿˆธ โŒ› ๐ŸŽš ๐Ÿ‘ˆ ๐Ÿ”Œ ๐Ÿ†” & ๐Ÿ”.
    
    ๐Ÿšฅ โšซ๏ธ ๐Ÿšซ ๐Ÿ“จ โšซ๏ธ, โšซ๏ธ ๐Ÿ“จ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” 4๏ธโƒฃ0๏ธโƒฃ1๏ธโƒฃ "โ›”" โŒ.
    
    & ๐Ÿ“จ ๐ŸŽš `WWW-Authenticate` โฎ๏ธ ๐Ÿ’ฒ `Basic`, & ๐Ÿ“ฆ `realm` ๐Ÿ”ข.
    
    ๐Ÿ‘ˆ ๐Ÿ’ฌ ๐Ÿ–ฅ ๐ŸŽฆ ๐Ÿ› ๏ธ ๐Ÿ“‹ ๐Ÿ†” & ๐Ÿ”.
    
    โคด๏ธ, ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ†Ž ๐Ÿ‘ˆ ๐Ÿ†” & ๐Ÿ”, ๐Ÿ–ฅ ๐Ÿ“จ ๐Ÿ‘ซ ๐ŸŽš ๐Ÿ”.
    
    ## ๐Ÿ™… ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ”ฐ ๐Ÿ”
    
    * ๐Ÿ—„ `HTTPBasic` & `HTTPBasicCredentials`.
    * โœ "`security` โš–" โš™๏ธ `HTTPBasic`.
    * โš™๏ธ ๐Ÿ‘ˆ `security` โฎ๏ธ ๐Ÿ”— ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/http-basic-auth.md

    If it doesn't receive it, it returns an HTTP 401 "Unauthorized" error.
    
    And returns a header `WWW-Authenticate` with a value of `Basic`, and an optional `realm` parameter.
    
    That tells the browser to show the integrated prompt for a username and password.
    
    Then, when you type that username and password, the browser sends them in the header automatically.
    
    ## Simple HTTP Basic Auth
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/security/http-basic-auth.md

    Wenn sie diesen nicht empfรคngt, gibt sie den HTTP-Error 401 โ€žUnauthorizedโ€œ zurรผck.
    
    Und gibt einen Header `WWW-Authenticate` mit dem Wert `Basic` und einem optionalen `realm`-Parameter (โ€žBereichโ€œ) zurรผck.
    
    Dadurch wird der Browser angewiesen, die integrierte Eingabeaufforderung fรผr einen Benutzernamen und ein Passwort anzuzeigen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:08 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/security/http-basic-auth.md

    # HTTP ๅŸบ็ก€ๆŽˆๆƒ
    
    ๆœ€็ฎ€ๅ•็š„็”จไพ‹ๆ˜ฏไฝฟ็”จ HTTP ๅŸบ็ก€ๆŽˆๆƒ๏ผˆHTTP Basic Auth๏ผ‰ใ€‚
    
    ๅœจ HTTP ๅŸบ็ก€ๆŽˆๆƒไธญ๏ผŒๅบ”็”จ้œ€่ฆ่ฏทๆฑ‚ๅคดๅŒ…ๅซ็”จๆˆทๅไธŽๅฏ†็ ใ€‚
    
    ๅฆ‚ๆžœๆฒกๆœ‰ๆŽฅๆ”ถๅˆฐ HTTP ๅŸบ็ก€ๆŽˆๆƒ๏ผŒๅฐฑ่ฟ”ๅ›ž HTTP 401 `"Unauthorized"` ้”™่ฏฏใ€‚
    
    ๅนถ่ฟ”ๅ›žๅซ `Basic` ๅ€ผ็š„่ฏทๆฑ‚ๅคด `WWW-Authenticate`ไปฅๅŠๅฏ้€‰็š„ `realm` ๅ‚ๆ•ฐใ€‚
    
    HTTP ๅŸบ็ก€ๆŽˆๆƒ่ฎฉๆต่งˆๅ™จๆ˜พ็คบๅ†…็ฝฎ็š„็”จๆˆทๅไธŽๅฏ†็ ๆ็คบใ€‚
    
    ่พ“ๅ…ฅ็”จๆˆทๅไธŽๅฏ†็ ๅŽ๏ผŒๆต่งˆๅ™จไผšๆŠŠๅฎƒไปฌ่‡ชๅŠจๅ‘้€่‡ณ่ฏทๆฑ‚ๅคดใ€‚
    
    ## ็ฎ€ๅ•็š„ HTTP ๅŸบ็ก€ๆŽˆๆƒ
    
    * ๅฏผๅ…ฅ `HTTPBsic` ไธŽ `HTTPBasicCredentials`
    * ไฝฟ็”จ `HTTPBsic` ๅˆ›ๅปบ**ๅฎ‰ๅ…จๆฆ‚ๅ›พ**
    * ๅœจ*่ทฏๅพ„ๆ“ไฝœ*็š„ไพ่ต–้กนไธญไฝฟ็”จ `security`
    * ่ฟ”ๅ›ž็ฑปๅž‹ไธบ `HTTPBasicCredentials` ็š„ๅฏน่ฑก๏ผš
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:43:48 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top