- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for endpoint (0.15 sec)
-
docs/pt/docs/tutorial/security/first-steps.md
* O usuário clica no frontend para ir à outra seção daquele frontend do aplicativo web. * O frontend precisa buscar mais dados daquela API. * Mas precisa de autenticação para aquele endpoint em específico. * Então, para autenticar com nossa API, ele manda um header de `Autorização` com o valor `Bearer` mais o token. * Se o token contém `foobar`, o conteúdo do header de `Autorização` será: `Bearer foobar`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/first-steps.md
Então, em uma URL como: ``` https://example.com/items/foo ``` ...a rota seria: ``` /items/foo ``` !!! info "Informação" Uma "rota" também é comumente chamada de "endpoint". Ao construir uma API, a "rota" é a principal forma de separar "preocupações" e "recursos". #### Operação "Operação" aqui se refere a um dos "métodos" HTTP. Um dos: * `POST` * `GET`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/first-steps.md
- 令牌只是用于验证用户的字符串 - 一般来说,令牌会在一段时间后过期 - 过时后,用户要再次登录 - 这样一来,就算令牌被人窃取,风险也较低。因为它与永久密钥不同,**在绝大多数情况下**不会长期有效 - 前端临时将令牌存储在某个位置 - 用户点击前端,前往前端应用的其它部件 - 前端需要从 API 中提取更多数据: - 为指定的端点(Endpoint)进行身份验证 - 因此,用 API 验证身份时,要发送值为 `Bearer` + 令牌的请求头 `Authorization` - 假如令牌为 `foobar`,`Authorization` 请求头就是: `Bearer foobar` ## **FastAPI** 的 `OAuth2PasswordBearer` **FastAPI** 提供了不同抽象级别的安全工具。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 7.4K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
* The user clicks in the frontend to go to another section of the frontend web app. * The frontend needs to fetch some more data from the API. * 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`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.9K bytes - Viewed (0)