- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 748 for token6 (0.06 sec)
-
docs/zh/docs/tutorial/security/oauth2-jwt.md
- # OAuth2 实现密码哈希与 Bearer JWT 令牌验证
- 至此,我们已经编写了所有安全流,本章学习如何使用 <abbr title="JSON Web Tokens">JWT</abbr> 令牌(Token)和安全密码哈希(Hash)实现真正的安全机制。
- 本章的示例代码真正实现了在应用的数据库中保存哈希密码等功能。
- 接下来,我们紧接上一章,继续完善安全机制。
- ## JWT 简介
- JWT 即**JSON 网络令牌**(JSON Web Tokens)。
- JWT 是一种将 JSON 对象编码为没有空格,且难以理解的长字符串的标准。JWT 的内容如下所示:
- ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
- // ignore unknown types.
- }
- }
- return response, nil
- }
- responses := []*discovery.DiscoveryResponse{}
- if all {
- token := ""
- touchedPods := 0
- GetProxyLoop:
- for {
- list, err := kubeClient.GetProxyPods(context.TODO(), int64(kubeClientGetPodLimit), token)
- if err != nil {
- return nil, err
- }
- // Iterate all the pod.
- for _, pod := range list.Items {
- touchedPods++
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.6K bytes - Viewed (0) -
docs/pt/docs/advanced/security/oauth2-scopes.md
- <img src="/img/tutorial/security/image11.png">
- ## Token JWT com escopos
- Agora, modifique o *caminho de rota* para retornar os escopos solicitados.
- Nós ainda estamos utilizando o mesmo `OAuth2PasswordRequestForm`. Ele inclui a propriedade `scopes` com uma `list` de `str`, com cada escopo que ele recebeu na requisição.
- E nós retornamos os escopos como parte do token JWT.
- /// danger | Cuidado
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 21.7K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
- }
- }
- // have reports whether the remaining tokens (including the current one) contain the specified token.
- func (p *Parser) have(token lex.ScanToken) bool {
- for i := p.inputPos; i < len(p.input); i++ {
- if p.input[i].ScanToken == token {
- return true
- }
- }
- return false
- }
- // at reports whether the next tokens are as requested.
- func (p *Parser) at(next ...lex.ScanToken) bool {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 36.9K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
- response = client.put(
- "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
- )
- assert response.status_code == 403, response.text
- assert response.json() == {"detail": "You can only update the item: plumbus"}
- def test_admin(client: TestClient):
- response = client.post(
- "/admin/?token=jessica", headers={"X-Token": "fake-super-secret-token"}
- )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
docs/em/docs/tutorial/security/oauth2-jwt.md
- # Oauth2️⃣ ⏮️ 🔐 (& 🔁), 📨 ⏮️ 🥙 🤝
- 🔜 👈 👥 ✔️ 🌐 💂♂ 💧, ➡️ ⚒ 🈸 🤙 🔐, ⚙️ <abbr title="JSON Web Tokens">🥙</abbr> 🤝 & 🔐 🔐 🔁.
- 👉 📟 🕳 👆 💪 🤙 ⚙️ 👆 🈸, 🖊 🔐 #️⃣ 👆 💽, ♒️.
- 👥 🔜 ▶️ ⚪️➡️ 🌐❔ 👥 ◀️ ⏮️ 📃 & 📈 ⚫️.
- ## 🔃 🥙
- 🥙 ⛓ "🎻 🕸 🤝".
- ⚫️ 🐩 🚫 🎻 🎚 📏 💧 🎻 🍵 🚀. ⚫️ 👀 💖 👉:
- ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.5K bytes - Viewed (0) -
tests/update_test.go
- ID: owner.ID,
- Name: "user",
- Token: Token{Content: "token2"},
- }
- o2, err := saveTokenOwner(&owner)
- if err != nil {
- t.Errorf("failed to save token owner, got error: %v", err)
- }
- if o2.Name != "user_name" {
- t.Errorf(`owner name should be "user_name", but got: "%s"`, o2.Name)
- }
- if o2.Token.Content != "token2_encrypted" {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0) -
internal/event/arn.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.1K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
- // errors if the token could not be created with the given service account in the given namespace
- if err != nil {
- return fmt.Errorf("could not create a token under service account %s in namespace %s: %v", serviceAccount, wg.Namespace, err)
- }
- if err := os.WriteFile(tokenPath, []byte(tokenReq.Status.Token), filePerms); err != nil {
- return err
- }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 25.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
- ///
- ## 토큰 반환하기
- `token` 엔드포인트의 응답은 JSON 객체여야 합니다.
- `token_type`이 있어야 합니다. 여기서는 "Bearer" 토큰을 사용하므로 토큰 유형은 "`bearer`"여야 합니다.
- 그리고 액세스 토큰을 포함하는 문자열과 함께 `access_token`이 있어야 합니다.
- 이 간단한 예제에서는 완전히 안전하지 않고, 동일한 `username`을 토큰으로 반환합니다.
- /// 팁
- 다음 장에서는 패스워드 해싱 및 <abbr title="JSON Web Tokens">JWT</abbr> 토큰을 사용하여 실제 보안 구현을 볼 수 있습니다.
- 하지만 지금은 필요한 세부 정보에 집중하겠습니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0)