Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 767 for token (0.03 sec)

  1. docs/zh/docs/tutorial/header-params.md

    ///
    
    ```Python hl_lines="9"
    {!> ../../docs_src/header_params/tutorial003.py!}
    ```
    
    ////
    
    与*路径操作*通信时,以下面的方式发送两个 HTTP 请求头:
    
    ```
    X-Token: foo
    X-Token: bar
    ```
    
    响应结果是:
    
    ```JSON
    {
        "X-Token values": [
            "bar",
            "foo"
        ]
    }
    ```
    
    ## 小结
    
    使用 `Header` 声明请求头的方式与 `Query`、`Path` 、`Cookie` 相同。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. .github/workflows/latest-changes.yml

            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v4
            with:
              # To allow latest-changes to commit to the main branch
              token: ${{ secrets.FASTAPI_LATEST_CHANGES }}
          # Allow debugging with tmate
          - name: Setup tmate session
            uses: mxschmitt/action-tmate@v3
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 26 02:14:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial003_an.py

    client = TestClient(app)
    
    
    def test_login():
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"access_token": "johndoe", "token_type": "bearer"}
    
    
    def test_login_incorrect_password():
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. api/go1.18.txt

    pkg go/ast, method (*IndexListExpr) End() token.Pos
    pkg go/ast, method (*IndexListExpr) Pos() token.Pos
    pkg go/ast, type FuncType struct, TypeParams *FieldList
    pkg go/ast, type IndexListExpr struct
    pkg go/ast, type IndexListExpr struct, Indices []Expr
    pkg go/ast, type IndexListExpr struct, Lbrack token.Pos
    pkg go/ast, type IndexListExpr struct, Rbrack token.Pos
    pkg go/ast, type IndexListExpr struct, X Expr
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/view/admin/dict/kuromoji/admin_dict_kuromoji_edit.jsp

                                        <label for="token" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.dict_kuromoji_token"/></label>
                                        <div class="col-sm-9">
                                            <la:errors property="token"/>
                                            <la:text styleId="token" property="token" styleClass="form-control"/>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 8.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

                    ctx = createContext(trans, tdomain, negoResp, !anonymous, s);
                }
                token = createToken(ctx, token, s);
    
                if ( token != null ) {
                    request = new Smb2SessionSetupRequest(this.getContext(), securityMode, negoResp.getCommonCapabilities(), 0, token);
                    // here, messages are rejected with NOT_SUPPORTED if we start signing as soon as we can, wait until
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  7. istioctl/pkg/multicluster/remote_secret.go

    			return &secret, nil
    		}
    	}
    
    	// finally, create the sa token secret manually
    	// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-service-account-api-token
    	// TODO ephemeral time-based tokens are preferred; we should re-think this
    	log.Infof("Creating token secret for service account %q", serviceAccount.Name)
    	secretName := tokenSecretName(serviceAccount.Name)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

        }
    
        public OptionalEntity<Set<String>> getPermissions(final HttpServletRequest request) {
            final String token = ComponentUtil.getAccessTokenHelper().getAccessTokenFromRequest(request);
            if (StringUtil.isNotBlank(token)) {
                return accessTokenBhv.selectEntity(cb -> {
                    cb.query().setToken_Term(token);
                }).map(accessToken -> {
                    final Set<String> permissionSet = new HashSet<>();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. docs_src/app_testing/app_b_an_py310/main.py

        if item_id not in fake_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return fake_db[item_id]
    
    
    @app.post("/items/", response_model=Item)
    async def create_item(item: Item, x_token: Annotated[str, Header()]):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item.id in fake_db:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/security/simple-oauth2.md

    ///
    
    ## Retorne o token
    
    A resposta do endpoint `token` deve ser um objeto JSON.
    
    Deve ter um `token_type`. No nosso caso, como estamos usando tokens "Bearer", o tipo de token deve ser "`bearer`".
    
    E deve ter um `access_token`, com uma string contendo nosso token de acesso.
    
    Para este exemplo simples, seremos completamente inseguros e retornaremos o mesmo `username` do token.
    
    /// tip | Dica
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:17:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top