- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 1,972 for tolen (0.04 sec)
-
docs_src/app_testing/app_b/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: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 1.8K bytes - Viewed (0) -
docs_src/app_testing/app_b_an_py39/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: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 1.8K bytes - Viewed (0) -
security/pkg/credentialfetcher/fetcher_test.go
} if tc.fetcherType == security.Mock { token, err := cf.GetPlatformCredential() if err != nil { t.Errorf("%s: unexpected error calling GetPlatformCredential: %v", id, err) } if token != tc.expectedToken { t.Errorf("%s: GetPlatformCredential returned %s, expected %s", id, token, tc.expectedToken) } } } }) } // Restore token refresh for other tests. plugin.SetTokenRotation(true)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 03 20:21:32 UTC 2023 - 3K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/KtFe10CliAnalysisSessionProvider.kt
val token = tokenFactory.create(project, project.createProjectWideOutOfBlockModificationTracker()) val context = facade.getAnalysisContext(useSiteKtElement, token) val useSiteModule = ProjectStructureProvider.getModule(project, useSiteKtElement, contextualModule = null) return KaFe10Session(context, useSiteModule, token) }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 1.7K bytes - Viewed (0) -
pkg/bootstrap/platform/aws.go
} } func requestHeaders(ipv6 bool) map[string]string { // try to get token first, if it fails, fallback to IMDSv1 token := getToken(ipv6) if token == "" { log.Debugf("token is empty, will fallback to IMDSv1") } headers := make(map[string]string, 1) if token != "" { headers["X-aws-ec2-metadata-token"] = token } return headers } func (a *awsEnv) Metadata() map[string]string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 03:52:10 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/util.go
// startPos returns the start position of node n. func startPos(n ast.Node) token.Pos { return n.Pos() } // endPos returns the position of the first character immediately after node n. func endPos(n ast.Node) token.Pos { return n.End() } // makeFromLiteral returns the constant value for the given literal string and kind. func makeFromLiteral(lit string, kind token.Token) constant.Value { return constant.MakeFromLiteral(lit, kind, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 1.7K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/common_test.go
}, "No bearer token": { metadata: metadata.MD{ "random": []string{}, "authorization": []string{ "Basic callername", }, }, expectedToken: "", extractBearerTokenErrMsg: "no bearer token exists in HTTP authorization header", }, "With bearer token": { metadata: metadata.MD{ "random": []string{},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 16 02:16:57 UTC 2021 - 2.4K bytes - Viewed (0) -
internal/jwt/parser.go
tokenBuf := base64BufPool.Get().(*[]byte) defer base64BufPool.Put(tokenBuf) token := *tokenBuf // Copy token to buffer, truncate to length. token = token[:copy(token[:base64BufferSize], tokenStr)] signer, err := ParseUnverifiedStandardClaims(token, claims, *bufp) if err != nil { return err } i := bytes.LastIndexByte(token, '.') if i < 0 { return jwtgo.ErrSignatureInvalid }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 09 07:53:08 UTC 2023 - 13.9K bytes - Viewed (0) -
security/pkg/util/jwtutil.go
} return expiration, nil } // GetAud returns the claim `aud` from the token. Returns nil if not found. func GetAud(token string) ([]string, error) { claims, err := parseJwtClaims(token) if err != nil { return nil, err } rawAud := claims["aud"] if rawAud == nil { return nil, fmt.Errorf("no aud in the token claims") } data, err := json.Marshal(rawAud) if err != nil { return nil, err
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/kubeapiserver/authenticator/config.go
tokencache "k8s.io/apiserver/pkg/authentication/token/cache" "k8s.io/apiserver/pkg/authentication/token/tokenfile" tokenunion "k8s.io/apiserver/pkg/authentication/token/union" "k8s.io/apiserver/pkg/server/dynamiccertificates" webhookutil "k8s.io/apiserver/pkg/util/webhook" "k8s.io/apiserver/plugin/pkg/authenticator/token/oidc" "k8s.io/apiserver/plugin/pkg/authenticator/token/webhook" typedv1core "k8s.io/client-go/kubernetes/typed/core/v1"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 19:29:33 UTC 2024 - 15.4K bytes - Viewed (0)