- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 453 for beaten (0.22 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/Bean.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.snapshot.impl class Bean implements Serializable { String prop
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 715 bytes - Viewed (0) -
docs/de/docs/tutorial/metadata.md
Erstellen Sie Metadaten für Ihre Tags und übergeben Sie sie an den Parameter `openapi_tags`: ```Python hl_lines="3-16 18" {!../../../docs_src/metadata/tutorial004.py!} ``` Beachten Sie, dass Sie Markdown in den Beschreibungen verwenden können. Beispielsweise wird „login“ in Fettschrift (**login**) und „fancy“ in Kursivschrift (_fancy_) angezeigt. !!! tip "Tipp"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:25:38 UTC 2024 - 6.6K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial001.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(): response = client.get("/items", headers={"Authorization": "Bearer testtoken"}) assert response.status_code == 200, response.text assert response.json() == {"token": "testtoken"} def test_incorrect_token():
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jun 03 01:48:20 UTC 2024 - 9.1K bytes - Viewed (0) -
docs_src/security/tutorial004_py310.py
headers={"WWW-Authenticate": "Bearer"}, ) access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES) access_token = create_access_token( data={"sub": user.username}, expires_delta=access_token_expires ) return Token(access_token=access_token, token_type="bearer") @app.get("/users/me/", response_model=User)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 4K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/first-steps.md
- 为指定的端点(Endpoint)进行身份验证 - 因此,用 API 验证身份时,要发送值为 `Bearer` + 令牌的请求头 `Authorization` - 假如令牌为 `foobar`,`Authorization` 请求头就是: `Bearer foobar` ## **FastAPI** 的 `OAuth2PasswordBearer` **FastAPI** 提供了不同抽象级别的安全工具。 本例使用 **OAuth2** 的 **Password** 流以及 **Bearer** 令牌(`Token`)。为此要使用 `OAuth2PasswordBearer` 类。 !!! info "说明" `Bearer` 令牌不是唯一的选择。 但它是最适合这个用例的方案。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 7.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/simple-oauth2.md
```Python hl_lines="58-67 69-72 90" {!../../../docs_src/security/tutorial003.py!} ``` !!! info "说明" 此处返回值为 `Bearer` 的响应头 `WWW-Authenticate` 也是规范的一部分。 任何 401**UNAUTHORIZED**HTTP(错误)状态码都应返回 `WWW-Authenticate` 响应头。 本例中,因为使用的是 Bearer Token,该响应头的值应为 `Bearer`。 实际上,忽略这个附加响应头,也不会有什么问题。 之所以在此提供这个附加响应头,是为了符合规范的要求。 说不定什么时候,就有工具用得上它,而且,开发者或用户也可能用得上。 这就是遵循标准的好处……
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go
ExpectedErr: true, ExpectedAuthorizationHeaders: []string{"Bearer 123"}, }, "valid bearer token with a space": { AuthorizationHeaders: []string{"Bearer token"}, ExpectedUserName: "", ExpectedOK: false, ExpectedErr: false, ExpectedAuthorizationHeaders: []string{"Bearer token"}, ExpectedRecordedWarning: invalidTokenWithSpaceWarning, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 25 13:22:28 UTC 2022 - 8.8K bytes - Viewed (0) -
docs/en/docs/tutorial/cors.md
But that will only allow certain types of communication, excluding everything that involves credentials: Cookies, Authorization headers like those used with Bearer Tokens, etc. So, for everything to work correctly, it's better to specify explicitly the allowed origins. ## Use `CORSMiddleware` You can configure it in your **FastAPI** application using the `CORSMiddleware`. * Import `CORSMiddleware`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Nov 13 20:28:37 UTC 2022 - 5.1K bytes - Viewed (0) -
api/openapi-spec/v3/logs_openapi.json
{ "components": { "securitySchemes": { "BearerToken": { "description": "Bearer Token authentication", "in": "header", "name": "authorization", "type": "apiKey" } } }, "info": { "title": "Kubernetes", "version": "unversioned" }, "openapi": "3.0.0", "paths": { "/logs/": { "get": { "operationId": "logFileListHandler",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:49:56 UTC 2022 - 1.1K bytes - Viewed (0)