Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 983 for securely (0.05 seconds)

  1. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

     * saml.default.groups=user
     * saml.default.roles=user
     * </pre>
     *
     * <h2>Security Settings (Production)</h2>
     * <p>For production environments, consider enabling these security features:</p>
     * <pre>
     * saml.security.authnrequest_signed=true
     * saml.security.want_messages_signed=true
     * saml.security.want_assertions_signed=true
     * </pre>
     *
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sun Dec 14 01:18:25 GMT 2025
    - 20.2K bytes
    - Click Count (3)
  2. docs/zh/docs/advanced/security/oauth2-scopes.md

    接下来,为*路径操作*  `/users/me/items/` 声明作用域 `items`。
    
    为此,要从 `fastapi` 中导入并使用 `Security` 。
    
    `Security` 声明依赖项的方式和 `Depends` 一样,但 `Security` 还能接收作用域(字符串)列表类型的参数 `scopes`。
    
    此处使用与 `Depends` 相同的方式,把依赖项函数 `get_current_active_user` 传递给 `Security`。
    
    同时,还传递了作用域**列表**,本例中只传递了一个作用域:`items`(此处支持传递更多作用域)。
    
    依赖项函数 `get_current_active_user` 还能声明子依赖项,不仅可以使用 `Depends`,也可以使用 `Security`。声明子依赖项函数(`get_current_user`)及更多作用域。
    
    本例要求使用作用域 `me`(还可以使用更多作用域)。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Dec 29 20:41:04 GMT 2024
    - 11.6K bytes
    - Click Count (0)
  3. 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:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.2K bytes
    - Click Count (0)
  4. 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)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. tests/test_security_http_basic_realm.py

    from base64 import b64encode
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBasic(realm="simple")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Security(security)):
        return {"username": credentials.username, "password": credentials.password}
    
    
    client = TestClient(app)
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

        }
    
        /**
         * Gets the owner group SID of this security descriptor.
         *
         * @return the security identifier of the owner group
         */
        public final SID getOwnerGroupSid() {
            return this.ownerGroupSid;
        }
    
        /**
         * Gets the owner user SID of this security descriptor.
         *
         * @return the security identifier of the owner user
         */
        public final SID getOwnerUserSid() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  7. cmd/sts-datatypes.go

    // MinIO API requests.
    type AssumeRoleResult struct {
    	// The identifiers for the temporary security credentials that the operation
    	// returns.
    	AssumedRoleUser AssumedRoleUser `xml:",omitempty"`
    
    	// The temporary security credentials, which include an access key ID, a secret
    	// access key, and a security (or session) token.
    	//
    	// Note: The size of the security token that STS APIs return is not fixed. We
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 9.9K bytes
    - Click Count (0)
  8. tests/test_security_http_base_description.py

    from fastapi import FastAPI, Security
    from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBase(scheme="Other", description="Other Security Scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/security/oauth2-scopes.md

    {* ../../docs_src/security/tutorial005_an_py310.py hl[5,9,13,47,65,106,108:116,122:126,130:136,141,157] *}
    
    Agora vamos revisar essas mudanças passo a passo.
    
    ## Esquema de segurança OAuth2 { #oauth2-security-scheme }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  10. docs/en/docs/reference/dependencies.md

    But when you want to also declare OAuth2 scopes, you can use `Security()` instead of `Depends()`.
    
    You can import `Security()` directly from `fastapi`:
    
    ```python
    from fastapi import Security
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 671 bytes
    - Click Count (0)
Back to Top