Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 1,006 for security2 (0.07 seconds)

  1. tests/test_security_api_key_cookie_optional.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security import APIKeyCookie
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(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
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  2. tests/test_security_oauth2_authorization_code_bearer.py

    from fastapi import FastAPI, Security
    from fastapi.security import OAuth2AuthorizationCodeBearer
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize", tokenUrl="token", auto_error=True
    )
    
    
    @app.get("/items/")
    async def read_items(token: str | None = Security(oauth2_scheme)):
        return {"token": token}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. docs/tr/docs/tutorial/security/simple-oauth2.md

    "Authorize" butonuna tıklayın.
    
    Şu bilgileri kullanın:
    
    User: `johndoe`
    
    Password: `secret`
    
    <img src="/img/tutorial/security/image04.png">
    
    Sistemde authenticate olduktan sonra şöyle görürsünüz:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### Kendi Kullanıcı Verinizi Alma { #get-your-own-user-data }
    
    Şimdi `/users/me` path’inde `GET` operasyonunu kullanın.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/resources/fips_java.policy

    grant {
         permission java.security.SecurityPermission "putProviderProperty.BCFIPS";
         permission java.security.SecurityPermission "putProviderProperty.BCJSSE";
         permission java.lang.RuntimePermission "getProtectionDomain";
         permission java.util.PropertyPermission "java.runtime.name", "read";
         permission org.bouncycastle.crypto.CryptoServicesPermission "tlsAlgorithmsEnabled";
         //io.netty.handler.codec.DecoderException
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.1K bytes
    - Click Count (0)
  5. tests/test_security_openid_connect_optional.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security.open_id_connect_url import OpenIdConnect
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str | None = Security(oid)):
        if oauth_header is None:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  6. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt

     */
    package okhttp3.internal.platform
    
    import java.security.Security
    
    actual object PlatformRegistry {
      private val isConscryptPreferred: Boolean
        get() {
          val preferredProvider = Security.getProviders()[0].name
          return "Conscrypt" == preferredProvider
        }
    
      private val isOpenJSSEPreferred: Boolean
        get() {
          val preferredProvider = Security.getProviders()[0].name
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu May 22 14:39:30 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

     * limitations under the License.
     */
    package okhttp3.tls.internal.der
    
    import java.math.BigInteger
    import java.security.GeneralSecurityException
    import java.security.PublicKey
    import java.security.Signature
    import java.security.SignatureException
    import java.security.cert.CertificateFactory
    import java.security.cert.X509Certificate
    import okio.Buffer
    import okio.ByteString
    import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  8. tests/test_security_api_key_header.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security import APIKeyHeader
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyHeader(name="key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return 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)
  9. build-tools-internal/src/main/resources/templates/release-notes.asciidoc

    <% if (changelogsByVersionByTypeByArea[version]["security"] != null) { %>
    [discrete]
    [[security-updates-${unqualifiedVersion}]]
    === Security updates
    
    <% for (change in changelogsByVersionByTypeByArea[version].remove("security").remove("_all_")) {
        print "* ${change.summary}\n"
    }
    }
    if (changelogsByVersionByTypeByArea[version]["known-issue"] != null) { %>
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 1.7K bytes
    - Click Count (0)
  10. tests/test_security_scopes_sub_dependency.py

    # Ref: https://github.com/fastapi/fastapi/discussions/6024#discussioncomment-8541913
    
    
    from typing import Annotated
    
    import pytest
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import SecurityScopes
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="call_counts")
    def call_counts_fixture():
        return {
            "get_db_session": 0,
            "get_current_user": 0,
            "get_user_me": 0,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top