- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 222 for authorization (0.17 seconds)
-
cmd/signature-v2_test.go
authString: "NoV2Prefix", expectedError: ErrSignatureVersionNotSupported, }, // Test case - 3. // Test case with missing parts in the Auth string. // below is the correct format of V2 Authorization header. // Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature { authString: signV2Algorithm, expectedError: ErrMissingFields, }, // Test case - 4. // Test case with signature part missing.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8K bytes - Click Count (0) -
docs/en/docs/tutorial/security/first-steps.md
* But it needs authentication for that specific endpoint. * So, to authenticate with our API, it sends a header `Authorization` with a value of `Bearer ` plus the token. * If the token contains `foobar`, the content of the `Authorization` header would be: `Bearer foobar`. ## **FastAPI**'s `OAuth2PasswordBearer` { #fastapis-oauth2passwordbearer }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 8.4K bytes - Click Count (0) -
docs/sts/client_grants/__init__.py
# all duplicate headers and pick one. headers = {} headers['content-type'] = 'application/x-www-form-urlencoded' headers['authorization'] = urllib3.make_headers( basic_auth='%s:%s' % (self.cid, self.csec))['authorization'] response = self._http.urlopen('POST', self.idp_ep, body="grant_type=client_credentials",Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 4.6K bytes - Click Count (0) -
docs/ru/docs/tutorial/security/first-steps.md
* Но для этого для конкретной конечной точки нужна аутентификация. * Поэтому, чтобы аутентифицироваться в нашем API, он отправляет HTTP-заголовок `Authorization` со значением `Bearer ` плюс сам токен. * Если токен содержит `foobar`, то содержимое заголовка `Authorization` будет: `Bearer foobar`. ## Класс `OAuth2PasswordBearer` в **FastAPI** { #fastapis-oauth2passwordbearer }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 14.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt
* connection is typically faster than establishing a new one. * * When a single logical call requires multiple streams due to redirects or authorization * challenges, we prefer to use the same physical connection for all streams in the sequence. There * are potential performance and behavior consequences to this preference. To support this feature,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.2K bytes - Click Count (0) -
docs/de/docs/tutorial/security/first-steps.md
* Es benötigt jedoch eine Authentifizierung für diesen bestimmten Endpunkt. * Um sich also bei unserer API zu authentifizieren, sendet es einen Header `Authorization` mit dem Wert `Bearer ` plus dem Token. * Wenn der Token `foobar` enthielte, wäre der Inhalt des `Authorization`-Headers: `Bearer foobar`. ## **FastAPI**s `OAuth2PasswordBearer` { #fastapis-oauth2passwordbearer }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 9.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/first-steps.md
- 这样一来,就算令牌被人窃取,风险也较低。因为它与永久密钥不同,**在绝大多数情况下**不会长期有效 - 前端临时将令牌存储在某个位置 - 用户点击前端,前往前端应用的其它部件 - 前端需要从 API 中提取更多数据: - 为指定的端点(Endpoint)进行身份验证 - 因此,用 API 验证身份时,要发送值为 `Bearer` + 令牌的请求头 `Authorization` - 假如令牌为 `foobar`,`Authorization` 请求头就是: `Bearer foobar` ## **FastAPI** 的 `OAuth2PasswordBearer` **FastAPI** 提供了不同抽象级别的安全工具。 本例使用 **OAuth2** 的 **Password** 流以及 **Bearer** 令牌(`Token`)。为此要使用 `OAuth2PasswordBearer` 类。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 7K bytes - Click Count (0) -
tests/test_dependency_paramless.py
def test_get_credentials(): response = client.get("/get-credentials", headers={"authorization": "Bearer token"}) assert response.status_code == 200, response.text assert response.json() == {"token": "token", "scopes": ["a", "b"]} def test_parameterless_with_scopes(): response = client.get( "/parameterless-with-scopes", headers={"authorization": "Bearer token"} ) assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.3K bytes - Click Count (0) -
internal/event/target/nats_contrib_test.go
opts := natsserver.DefaultTestOptions opts.Port = 14223 opts.Authorization = "s3cr3t" s := natsserver.RunServer(&opts) defer s.Shutdown() clientConfig := &NATSArgs{ Enable: true, Address: xnet.Host{ Name: "localhost", Port: (xnet.Port(opts.Port)), IsPortSet: true, }, Subject: "test", Token: opts.Authorization, } con, err := clientConfig.connectNats() if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Apr 27 04:30:57 GMT 2025 - 3K bytes - Click Count (0)