Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 828 for securely (0.24 sec)

  1. tests/test_security_http_base.py

    from fastapi import FastAPI, Security
    from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBase(scheme="Other")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_password_bearer_optional_description.py

    from fastapi import FastAPI, Security
    from fastapi.security import OAuth2PasswordBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="/token",
        description="OAuth2PasswordBearer security scheme",
        auto_error=False,
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        if token is None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. tests/test_security_openid_connect_description.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security.open_id_connect_url import OpenIdConnect
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(
        openIdConnectUrl="/openid", description="OpenIdConnect security scheme"
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(oid)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/Configuration.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    
    import java.net.InetAddress;
    import java.security.SecureRandom;
    import java.util.List;
    import java.util.TimeZone;
    
    
    /**
     * 
     * 
     * Implementors of this interface should extend {@link jcifs.config.BaseConfiguration} or
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/security/simple-oauth2.md

    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="4  76"
    {!> ../../docs_src/security/tutorial003.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="2  74"
    {!> ../../docs_src/security/tutorial003_py310.py!}
    ```
    
    ////
    
    `OAuth2PasswordRequestForm` ๐ŸŽ“ ๐Ÿ”— ๐Ÿ‘ˆ ๐Ÿ“ฃ ๐Ÿ“จ ๐Ÿ’ช โฎ๏ธ:
    
    *  `username`.
    *  `password`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/security/http-basic-auth.md

    * ไฝฟ็”จ `HTTPBasic` ๅˆ›ๅปบ**ๅฎ‰ๅ…จๆฆ‚ๅ›พ**
    * ๅœจ*่ทฏๅพ„ๆ“ไฝœ*็š„ไพ่ต–้กนไธญไฝฟ็”จ `security`
    * ่ฟ”ๅ›ž็ฑปๅž‹ไธบ `HTTPBasicCredentials` ็š„ๅฏน่ฑก๏ผš
        * ๅŒ…ๅซๅ‘้€็š„ `username` ไธŽ `password`
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="4  8  12"
    {!> ../../docs_src/security/tutorial006_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="2  7  11"
    {!> ../../docs_src/security/tutorial006_an.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. architecture/tests/integration.md

    ### Security Integration Tests
    
    - **Location**: `tests/integration/security`
    - **Purpose**: Tests related to the security features and components of Istio, such as authentication and authorization mechanisms.
    - **Focus**:
      1. Authentication and authorization mechanisms.
      1. Interaction between security components and Istio control plane.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 00:57:44 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tests/test_security_http_base_optional.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBase(scheme="Other", auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(
        credentials: Optional[HTTPAuthorizationCredentials] = Security(security),
    ):
        if credentials is None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. tests/test_security_http_digest.py

    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPDigest()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/security/get-current-user.md

    {!> ../../docs_src/security/tutorial002_py310.py!}
    ```
    
    ////
    
    ## ๐Ÿ’‰ โฎ๏ธ ๐Ÿ‘ฉโ€๐Ÿ’ป
    
    ๐Ÿ”œ ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ ๐ŸŽ `Depends` โฎ๏ธ ๐Ÿ‘† `get_current_user` *โžก ๐Ÿ› ๏ธ*:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="31"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="29"
    {!> ../../docs_src/security/tutorial002_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top