Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 691 for tolen (0.04 sec)

  1. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py39
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. tests/integration/security/jwt_test.go

    						opts.HTTP.Path = "/valid-token?token_value=" + jwt.TokenIssuer1
    						opts.Check = check.Status(http.StatusForbidden)
    					},
    				},
    				{
    					name: "valid-token-set",
    					customizeCall: func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions) {
    						opts.HTTP.Path = "/valid-token?token=" + jwt.TokenIssuer1 + "&secondary_token=" + jwt.TokenIssuer1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    			ctx := context.Background()
    			if tc.metadata != nil {
    				if tc.token != "" {
    					token := security.BearerTokenPrefix + tc.token
    					tc.metadata.Append("authorization", token)
    				}
    				ctx = metadata.NewIncomingContext(ctx, tc.metadata)
    			}
    
    			tokenReview := &k8sauth.TokenReview{
    				Spec: k8sauth.TokenReviewSpec{
    					Token: tc.token,
    				},
    			}
    
    			tokenReview.Status.Audiences = []string{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/contracts/description/booleans/KtLogicalCombinators.kt

        private val backingOperation: KaLogicOperation
    ) : KaContractBooleanExpression {
        init {
            check(left.token === right.token) { "$left and $right should have the same lifetime token" }
        }
    
        override val token: KaLifetimeToken get() = backingLeft.token
        public val left: KaContractBooleanExpression get() = withValidityAssertion { backingLeft }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial012_an.py

        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_one_users():
        response = client.get("/users/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. security/pkg/nodeagent/caclient/credentials.go

    	if t == nil {
    		return nil, nil
    	}
    	token, err := t.GetToken()
    	if err != nil {
    		return nil, err
    	}
    	if token == "" {
    		return nil, nil
    	}
    	return map[string]string{
    		"authorization": "Bearer " + token,
    	}, nil
    }
    
    // Allow the token provider to be used regardless of transport security; callers can determine whether
    // this is safe themselves.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

        return true;
      }
    
      if (*region_idx < region_if.getNumRegions()) {
        // For the region-blocks of If op, we create a dummy token argument. Later
        // we replace that block-argument's uses with the same (implicitly captured)
        // token 'token', used for If op, and erase the argument.
        // Note that 'RewriteControlFlowOpRegion' sets the token, used for the first
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/authentication/v1/types.go

    }
    
    // TokenReviewSpec is a description of the token authentication request.
    type TokenReviewSpec struct {
    	// Token is the opaque bearer token.
    	// +optional
    	Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"`
    	// Audiences is a list of the identifiers that the resource server presented
    	// with the token identifies as. Audience-aware token authenticators will
    	// verify that the token was intended for at least one of the audiences in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top