Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 532 for mytoken (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/dependencies/tutorial012_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, Header, HTTPException
    
    
    async def verify_token(x_token: Annotated[str, Header()]):
        if x_token != "fake-super-secret-token":
            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def verify_key(x_key: Annotated[str, Header()]):
        if x_key != "fake-super-secret-key":
            raise HTTPException(status_code=400, detail="X-Key header invalid")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 746 bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SpnegoContext.java

        private static SpnegoToken getToken(final byte[] token, final int off, final int len) throws SpnegoException {
            byte[] b = new byte[len];
            if (off == 0 && token.length == len) {
                b = token;
            } else {
                System.arraycopy(token, off, b, 0, len);
            }
            return getToken(b);
        }
    
        private static SpnegoToken getToken(final byte[] token) throws SpnegoException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

            final String idToken = authData.idToken();
            if (logger.isDebugEnabled()) {
                logger.debug("idToken={}***", idToken.substring(0, Math.min(8, idToken.length())));
            }
            try {
                final JWTClaimsSet claimsSet = JWTParser.parse(idToken).getJWTClaimsSet();
                if (claimsSet == null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_bigger_applications/test_main.py

        response = client.put(
            "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 403, response.text
        assert response.json() == {"detail": "You can only update the item: plumbus"}
    
    
    def test_admin(client: TestClient):
        response = client.post(
            "/admin/?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    
    @app.get(
        "/with-get-token", dependencies=[Security(get_token, scopes=["read", "write"])]
    )
    async def read_with_get_token():
        return {"message": "Admin Access"}
    
    
    router = APIRouter(dependencies=[Security(oauth2_scheme, scopes=["read"])])
    
    
    @router.get("/items/")
    async def read_items(token: str | None = Depends(oauth2_scheme)):
        return {"token": token}
    
    
    @router.post("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/security/first-steps.md

    {* ../../docs_src/security/tutorial001_an_py310.py hl[8] *}
    
    /// tip
    
    Here `tokenUrl="token"` refers to a relative URL `token` that we haven't created yet. As it's a relative URL, it's equivalent to `./token`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/security/first-steps.md

    - L'API vérifie ce `username` et ce `password`, et répond avec un « token » (nous n'avons encore rien implémenté de tout cela).
        - Un « token » n'est qu'une chaîne contenant des informations que nous pouvons utiliser plus tard pour vérifier cet utilisateur.
        - Normalement, un token est configuré pour expirer après un certain temps.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  8. 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.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. 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[93:110] *}
    
    ## Actualizar la *path operation* `/token` { #update-the-token-path-operation }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiItem.java

         *
         * @param id The ID of the item.
         * @param token The token.
         * @param segmentation The segmentation.
         * @param reading The reading.
         * @param pos The part of speech.
         */
        public KuromojiItem(final long id, final String token, final String segmentation, final String reading, final String pos) {
            this.id = id;
            this.token = token;
            this.segmentation = segmentation;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top