Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 748 for token6 (0.06 sec)

  1. docs/zh/docs/tutorial/security/oauth2-jwt.md

    1. # OAuth2 实现密码哈希与 Bearer JWT 令牌验证
    2.  
    3. 至此,我们已经编写了所有安全流,本章学习如何使用 <abbr title="JSON Web Tokens">JWT</abbr> 令牌(Token)和安全密码哈希(Hash)实现真正的安全机制。
    4.  
    5. 本章的示例代码真正实现了在应用的数据库中保存哈希密码等功能。
    6.  
    7. 接下来,我们紧接上一章,继续完善安全机制。
    8.  
    9. ## JWT 简介
    10.  
    11. JWT 即**JSON 网络令牌**(JSON Web Tokens)。
    12.  
    13. JWT 是一种将 JSON 对象编码为没有空格,且难以理解的长字符串的标准。JWT 的内容如下所示:
    14.  
    15. ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. istioctl/pkg/multixds/gather.go

    1. // ignore unknown types.
    2. }
    3. }
    4. return response, nil
    5. }
    6.  
    7. responses := []*discovery.DiscoveryResponse{}
    8. if all {
    9. token := ""
    10. touchedPods := 0
    11.  
    12. GetProxyLoop:
    13. for {
    14. list, err := kubeClient.GetProxyPods(context.TODO(), int64(kubeClientGetPodLimit), token)
    15. if err != nil {
    16. return nil, err
    17. }
    18. // Iterate all the pod.
    19. for _, pod := range list.Items {
    20. 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)
  3. docs/pt/docs/advanced/security/oauth2-scopes.md

    1. <img src="/img/tutorial/security/image11.png">
    2.  
    3. ## Token JWT com escopos
    4.  
    5. Agora, modifique o *caminho de rota* para retornar os escopos solicitados.
    6.  
    7. 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.
    8.  
    9. E nós retornamos os escopos como parte do token JWT.
    10.  
    11. /// 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)
  4. src/cmd/asm/internal/asm/parse.go

    1. }
    2. }
    3.  
    4. // have reports whether the remaining tokens (including the current one) contain the specified token.
    5. func (p *Parser) have(token lex.ScanToken) bool {
    6. for i := p.inputPos; i < len(p.input); i++ {
    7. if p.input[i].ScanToken == token {
    8. return true
    9. }
    10. }
    11. return false
    12. }
    13.  
    14. // at reports whether the next tokens are as requested.
    15. 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)
  5. tests/test_tutorial/test_bigger_applications/test_main.py

    1. response = client.put(
    2. "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
    3. )
    4. assert response.status_code == 403, response.text
    5. assert response.json() == {"detail": "You can only update the item: plumbus"}
    6.  
    7.  
    8. def test_admin(client: TestClient):
    9. response = client.post(
    10. "/admin/?token=jessica", headers={"X-Token": "fake-super-secret-token"}
    11. )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/security/oauth2-jwt.md

    1. # Oauth2️⃣ ⏮️ 🔐 (&amp; 🔁), 📨 ⏮️ 🥙 🤝
    2.  
    3. 🔜 👈 👥 ✔️ 🌐 💂‍♂ 💧, ➡️ 🈸 🤙 🔐, ⚙️ <abbr title="JSON Web Tokens">🥙</abbr> 🤝 &amp; 🔐 🔐 🔁.
    4.  
    5. 👉 📟 🕳 👆 💪 🤙 ⚙️ 👆 🈸, 🖊 🔐 #️⃣ 👆 💽, ♒️.
    6.  
    7. 👥 🔜 ▶️ ⚪️➡️ 🌐❔ 👥 ◀️ ⏮️ 📃 &amp; 📈 ⚫️.
    8.  
    9. ## 🔃 🥙
    10.  
    11. 🥙 "🎻 🕸 🤝".
    12.  
    13. ⚫️ 🐩 🚫 🎻 🎚 📏 💧 🎻 🍵 🚀. ⚫️ 👀 💖 👉:
    14.  
    15. ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. tests/update_test.go

    1. ID: owner.ID,
    2. Name: "user",
    3. Token: Token{Content: "token2"},
    4. }
    5. o2, err := saveTokenOwner(&owner)
    6. if err != nil {
    7. t.Errorf("failed to save token owner, got error: %v", err)
    8. }
    9. if o2.Name != "user_name" {
    10. t.Errorf(`owner name should be "user_name", but got: "%s"`, o2.Name)
    11. }
    12. 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)
  8. internal/event/arn.go

    1. return nil, &ErrInvalidARN{s}
    2. }
    3.  
    4. tokens := strings.Split(s, ":")
    5. if len(tokens) != 6 {
    6. return nil, &ErrInvalidARN{s}
    7. }
    8.  
    9. if tokens[4] == "" || tokens[5] == "" {
    10. return nil, &ErrInvalidARN{s}
    11. }
    12.  
    13. return &ARN{
    14. region: tokens[3],
    15. TargetID: TargetID{
    16. ID: tokens[4],
    17. Name: tokens[5],
    18. },
    19. }, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    1. // errors if the token could not be created with the given service account in the given namespace
    2. if err != nil {
    3. return fmt.Errorf("could not create a token under service account %s in namespace %s: %v", serviceAccount, wg.Namespace, err)
    4. }
    5. if err := os.WriteFile(tokenPath, []byte(tokenReq.Status.Token), filePerms); err != nil {
    6. return err
    7. }
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/security/simple-oauth2.md

    1. ///
    2.  
    3. ## 토큰 반환하기
    4.  
    5. `token` 엔드포인트의 응답은 JSON 객체여야 합니다.
    6.  
    7. `token_type` 있어야 합니다. 여기서는 "Bearer" 토큰을 사용하므로 토큰 유형은 "`bearer`"여야 합니다.
    8.  
    9. 그리고 액세스 토큰을 포함하는 문자열과 함께 `access_token` 있어야 합니다.
    10.  
    11. 간단한 예제에서는 완전히 안전하지 않고, 동일한 `username` 토큰으로 반환합니다.
    12.  
    13. /// 팁
    14.  
    15. 다음 장에서는 패스워드 해싱 <abbr title="JSON Web Tokens">JWT</abbr> 토큰을 사용하여 실제 보안 구현을 있습니다.
    16.  
    17. 하지만 지금은 필요한 세부 정보에 집중하겠습니다.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top