Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 730 for token1 (0.06 seconds)

  1. docs/zh-hant/docs/advanced/security/oauth2-scopes.md

    <img src="/img/tutorial/security/image11.png">
    
    ## 內含 scopes 的 JWT token { #jwt-token-with-scopes }
    
    現在,修改 token 的路徑操作以回傳所請求的 scopes。
    
    我們仍然使用相同的 `OAuth2PasswordRequestForm`。它包含屬性 `scopes`,其為 `list` 的 `str`,列出請求中收到的每個 scope。
    
    並且我們將這些 scopes 作為 JWT token 的一部分回傳。
    
    /// danger
    
    為了簡化,這裡我們只是直接把接收到的 scopes 加進 token。
    
    但在你的應用中,為了安全性,你應確保只加入該使用者實際可擁有或你預先定義的 scopes。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  2. docs/uk/docs/tutorial/security/oauth2-jwt.md

    # OAuth2 з паролем (і хешуванням), Bearer з токенами JWT { #oauth2-with-password-and-hashing-bearer-with-jwt-tokens }
    
    Тепер, коли ми маємо весь потік безпеки, зробімо застосунок справді захищеним, використовуючи токени <abbr title="JSON Web Tokens - Токени JSON Web">JWT</abbr> і безпечне хешування паролів.
    
    Цей код ви можете реально використовувати у своєму застосунку, зберігати хеші паролів у своїй базі даних тощо.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  3. internal/config/lambda/event/targetid.go

    	return nil
    }
    
    // parseTargetID - parses string to TargetID.
    func parseTargetID(s string) (*TargetID, error) {
    	tokens := strings.Split(s, ":")
    	if len(tokens) != 2 {
    		return nil, fmt.Errorf("invalid TargetID format '%v'", s)
    	}
    
    	return &TargetID{
    		ID:   tokens[0],
    		Name: tokens[1],
    	}, nil
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  4. src/cmd/asm/internal/lex/lex_test.go

    			"#endif",
    			"C",
    		),
    		"1234.\n",
    	},
    	{
    		"nested taken/not-taken #ifdef",
    		lines(
    			"#define A",
    			"#ifdef A",
    			"#ifdef B",
    			"#define C 1234",
    			"#else",
    			"#define C 5678",
    			"#endif",
    			"#endif",
    			"C",
    		),
    		"5678.\n",
    	},
    	{
    		"nested not-taken/would-be-taken #ifdef",
    		lines(
    			"#define B",
    			"#ifdef A",
    			"#ifdef B",
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Click Count (0)
  5. cmd/sftp-server.go

    	allowMACs := supportedMACs
    	var err error
    
    	for _, arg := range args {
    		tokens := strings.SplitN(arg, "=", 2)
    		if len(tokens) != 2 {
    			logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s", arg), "unable to start SFTP server")
    		}
    		switch tokens[0] {
    		case "address":
    			host, portStr, err := net.SplitHostPort(tokens[1])
    			if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  6. fastapi/security/oauth2.py

        """
        OAuth2 flow for authentication using a bearer token obtained with an OAuth2 code
        flow. An instance of it would be used as a dependency.
        """
    
        def __init__(
            self,
            authorizationUrl: str,
            tokenUrl: Annotated[
                str,
                Doc(
                    """
                    The URL to obtain the OAuth2 token.
                    """
                ),
            ],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Mar 24 16:32:10 GMT 2026
    - 23.6K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/security/oauth2-jwt.md

    # 使用密码(及哈希)的 OAuth2,基于 JWT 的 Bearer 令牌 { #oauth2-with-password-and-hashing-bearer-with-jwt-tokens }
    
    现在我们已经有了完整的安全流程,接下来用 <abbr title="JSON Web Tokens - JSON Web 令牌">JWT</abbr> 令牌和安全的密码哈希,让应用真正安全起来。
    
    这些代码可以直接用于你的应用,你可以把密码哈希保存到数据库中,等等。
    
    我们将从上一章结束的地方继续,逐步完善。
    
    ## 关于 JWT { #about-jwt }
    
    JWT 意为 “JSON Web Tokens”。
    
    它是一种标准,把一个 JSON 对象编码成没有空格、很密集的一长串字符串。看起来像这样:
    
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/security/simple-oauth2.md

    Pour une explication plus complète de `**user_dict`, consultez [la documentation pour **Modèles supplémentaires**](../extra-models.md#about-user-in-dict).
    
    ///
    
    ## Renvoyer le jeton { #return-the-token }
    
    La réponse de l'endpoint `token` doit être un objet JSON.
    
    Il doit contenir un `token_type`. Dans notre cas, comme nous utilisons des jetons « Bearer », le type de jeton doit être « bearer ».
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/security/oauth2-scopes.md

    <img src="/img/tutorial/security/image11.png">
    
    ## Token JWT com escopos { #jwt-token-with-scopes }
    
    Agora, modifique a *operação de rota* do token 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
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 14.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.pac.PACDecodingException;
    
    /**
     * Tests for KerberosEncData.
     */
    class KerberosEncDataTest {
    
        /**
         * Test constructor with a valid token.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if a PAC decoding error occurs
         * @throws UnknownHostException if the IP address is not found
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.7K bytes
    - Click Count (0)
Back to Top