Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 998 for taken (0.02 sec)

  1. docs_src/app_testing/app_b_py310/test_main.py

    
    def test_read_nonexistent_item():
        response = client.get("/items/baz", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_create_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/MediaType.java

      static MediaType createVideoType(String subtype) {
        return create(VIDEO_TYPE, subtype);
      }
    
      private static String normalizeToken(String token) {
        checkArgument(TOKEN_MATCHER.matchesAllOf(token));
        checkArgument(!token.isEmpty());
        return Ascii.toLowerCase(token);
      }
    
      private static String normalizeParameterValue(String attribute, String value) {
        checkNotNull(value); // for GWT
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 02 01:46:40 UTC 2025
    - 48K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/accesstoken/CreateForm.java

        public String token;
    
        /**
         * The permissions associated with this access token.
         * Defines what operations and resources this token can access.
         */
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String permissions;
    
        /**
         * The parameter name for the access token.
         * This field specifies how the token should be passed in API requests.
         * Maximum length is 10000 characters.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/security/oauth2-jwt.md

    Actualiza `get_current_user` para recibir el mismo token que antes, pero esta vez, usando tokens JWT.
    
    Decodifica el token recibido, verifĂ­calo y devuelve el usuario actual.
    
    Si el token es inválido, devuelve un error HTTP de inmediato.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Actualizar la *path operation* `/token` { #update-the-token-path-operation }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_header_params/test_tutorial003.py

    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            (
                "/items",
                [("x-token", "foo"), ("x-token", "bar")],
                200,
                {"X-Token values": ["foo", "bar"]},
            ),
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/security/oauth2-jwt.md

    Update `get_current_user` to receive the same token as before, but this time, using JWT tokens.
    
    Decode the received token, verify it, and return the current user.
    
    If the token is invalid, return an HTTP error right away.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    ## Update the `/token` *path operation* { #update-the-token-path-operation }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. tests/test_security_oauth2_password_bearer_optional_description.py

    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:
            return {"msg": "Create an account first"}
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            }, "A PACDecodingException should be thrown for a malformed token.");
    
            assertEquals("Malformed kerberos ticket", exception.getMessage(), "The exception message should indicate a malformed ticket.");
        }
    
        /**
         * Test constructor with an empty token.
         * Empty token causes readObject() to return null, which leads to NullPointerException.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/opensearch/config/cbean/cq/bs/BsAccessTokenCQ.java

        public void setToken_Equal(String token) {
            setToken_Term(token, null);
        }
    
        public void setToken_Equal(String token, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setToken_Term(token, opLambda);
        }
    
        public void setToken_Term(String token) {
            setToken_Term(token, null);
        }
    
        public void setToken_Term(String token, ConditionOptionCall<TermQueryBuilder> opLambda) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 71.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

      override fun hashCode(): Int = mediaType.hashCode()
    
      companion object {
        private const val TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
        private const val QUOTED = "\"([^\"]*)\""
        private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
        private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?")
    
        /**
         * Returns a media type for this string.
         *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top