Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Leider (0.18 sec)

  1. internal/config/identity/openid/jwt_test.go

    	defer server.Close()
    
    	jwt := &jwtgo.Token{
    		Method: jwtgo.SigningMethodHS256,
    		Claims: jwtgo.StandardClaims{
    			ExpiresAt: 253428928061,
    			Audience:  "76b95ae5-33ef-4283-97b7-d2a85dc2d8f4",
    		},
    		Header: map[string]interface{}{
    			"typ": "JWT",
    			"alg": jwtgo.SigningMethodHS256.Alg(),
    			"kid": "76b95ae5-33ef-4283-97b7-d2a85dc2d8f4",
    		},
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. cmd/jwt_test.go

    		req         *http.Request
    		expectedErr error
    	}{
    		// Set valid authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{
    					"Authorization": []string{token},
    				},
    			},
    			expectedErr: nil,
    		},
    		// No authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{},
    			},
    			expectedErr: errNoAuthToken,
    		},
    		// Invalid authorization token.
    		{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top