- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 1,972 for tolen (0.22 sec)
-
docs_src/security/tutorial002_an.py
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 - 815 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken.go
const ( invalidTokenWithSpaceWarning = "the provided Authorization header contains extra space before the bearer token, and is ignored" ) type Authenticator struct { auth authenticator.Token } func New(auth authenticator.Token) *Authenticator { return &Authenticator{auth} } var invalidToken = errors.New("invalid bearer token") func (a *Authenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 25 13:22:28 UTC 2022 - 2K bytes - Viewed (0) -
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) -
staging/src/k8s.io/api/authentication/v1/types_swagger_doc_generated.go
var map_TokenReviewSpec = map[string]string{ "": "TokenReviewSpec is a description of the token authentication request.", "token": "Token is the opaque bearer token.",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 12:50:40 UTC 2023 - 7.6K bytes - Viewed (0) -
src/internal/syscall/windows/security_windows.go
Privileges [1]LUID_AND_ATTRIBUTES } //sys OpenThreadToken(h syscall.Handle, access uint32, openasself bool, token *syscall.Token) (err error) = advapi32.OpenThreadToken //sys LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error) = advapi32.LookupPrivilegeValueW
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 04 07:21:38 UTC 2023 - 4K bytes - Viewed (0) -
tests/test_tutorial/test_header_params/test_tutorial003_an.py
@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):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.1K bytes - Viewed (0) -
cmd/api-resources_test.go
} if prefix != testCase.prefix { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.prefix, prefix) } if token != testCase.token { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.token, token) } if startAfter != testCase.startAfter { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.startAfter, startAfter) } if delimiter != testCase.delimiter {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 7.1K bytes - Viewed (0) -
security/pkg/credentialfetcher/plugin/mock.go
"istio.io/istio/pkg/log" ) const fakeTokenPrefix = "fake-token-" var mockcredLog = log.RegisterScope("mockcred", "Mock credential fetcher for istio agent") // MockPlugin is the plugin object. type MockPlugin struct { token string } // CreateMockPlugin creates a mock credential fetcher plugin. Return the pointer to the created plugin. func CreateMockPlugin(token string) *MockPlugin { p := &MockPlugin{ token: token, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3K bytes - Viewed (0) -
test/ken/rob2.go
v = 10*v + int(tokenbuf[i]-'0') } return v } func Parse() *Slist { var slist *Slist if token == EOF || token == ')' { return nil } if token == '(' { NextToken() slist = ParseList() Expect(')') return slist } else { // Atom switch token { case EOF: return nil case '0': slist = atom(atoi()) case '"', 'A': slist = atom(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 4.3K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002_an.py
with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/bar/ws?token=some-token") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: some-token" data = websocket.receive_text()
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 3.6K bytes - Viewed (0)