Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,972 for tolen (0.04 sec)

  1. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

    // function. The original public function will be modified to create a token,
    // while the function is cloned and rewritten with an extra token argument and
    // an extra token result. All callers to the original function are updated to
    // point to the cloned function and the function the caller is in is updated to
    // pass a token or create a token.
    
    // CHECK: func @main([[MAIN_ARG0:%.*]]: tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/util/join.go

    	`kubeadm join {{.ControlPlaneHostPort}} --token {{.Token}} \
    	{{range $h := .CAPubKeyPins}}--discovery-token-ca-cert-hash {{$h}} {{end}}{{if .ControlPlane}}\
    	--control-plane {{if .CertificateKey}}--certificate-key {{.CertificateKey}}{{end}}{{end}}`,
    ))
    
    // GetJoinWorkerCommand returns the kubeadm join command for a given token and
    // Kubernetes cluster (the current cluster in the kubeconfig file)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_authorization_code_bearer.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize", tokenUrl="token", auto_error=True
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
        response = client.get("/items")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial006.py

    
    def test_get_invalid_one_header():
        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_second_header():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. docs/sts/wso2.md

    | aud        | _string array_ | The token audience list. The client identifier of the OAuth clients that the JWT is intended for, is sent herewith.                                                                     |
    | azp        | _string_       | The authorized party for which the token is issued to. The client identifier of the OAuth client that the token is issued for, is sent herewith.                                        |
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  6. pkg/test/framework/components/istio/ca.go

    	if err != nil {
    		return "", err
    	}
    	exp := rt.Status.ExpirationTimestamp.Time
    	cachedTokens.Store(san, token{rt.Status.Token, exp})
    	return rt.Status.Token, nil
    }
    
    // map of SAN to jwt token. Used to avoid repetitive calls
    var cachedTokens sync.Map
    
    type token struct {
    	token      string
    	expiration time.Time
    }
    
    // NewCitadelClient create a CA client for Citadel.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                                            builder.functionLikeBuilder.buildConstructorSymbol(resolvedSymbol)
                                        },
                                        token = token
                                    ),
                                    token
                                )
                            } else null
                        }
    
                        is FirNamedFunctionSymbol -> {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_params/test_tutorial003_an_py310.py

    @needs_py310
    @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"]}),
            # TODO: fix this, is it a bug?
            # ("/items", [("x-token", "foo"), ("x-token", "bar")], 200, {"X-Token values": ["foo", "bar"]}),
        ],
    )
    def test(path, headers, expected_status, expected_response, client: TestClient):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. security/pkg/server/ca/authenticate/oidc_test.go

    	}
    
    	tests := map[string]struct {
    		token      string
    		expectErr  bool
    		expectedID string
    	}{
    		"No bearer token": {
    			expectErr: true,
    		},
    		"Valid token": {
    			token:      token,
    			expectErr:  false,
    			expectedID: spiffe.MustGenSpiffeURIForTrustDomain("baz.svc.id.goog", "bar", "foo"),
    		},
    		"Expired token": {
    			token:     expiredToken,
    			expectErr: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. docs_src/security/tutorial002_an_py39.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
            username=token + "fakedecoded", email="******@****.***", full_name="John Doe"
        )
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 786 bytes
    - Viewed (0)
Back to top