Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for kty (0.24 sec)

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

    // A.1 - Example public keys
    func TestPublicKey(t *testing.T) {
    	const jsonkey = `{"keys":
           [
             {"kty":"EC",
              "crv":"P-256",
              "x":"MKBCTNIcKUSDii11ySs3526iDZ8AiTo7Tu6KPAqv7D4",
              "y":"4Etl6SRW2YiLUrN5vfvVHuhp7x8PxltmWWlbbM4IFyM",
              "use":"enc",
              "kid":"1"},
    
             {"kty":"RSA",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwks.go

    	"crypto/elliptic"
    	"crypto/rsa"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"math/big"
    )
    
    // JWKS - https://tools.ietf.org/html/rfc7517
    type JWKS struct {
    	Keys []*JWKS `json:"keys,omitempty"`
    
    	Kty string `json:"kty"`
    	Use string `json:"use,omitempty"`
    	Kid string `json:"kid,omitempty"`
    	Alg string `json:"alg,omitempty"`
    
    	Crv string `json:"crv,omitempty"`
    	X   string `json:"x,omitempty"`
    	Y   string `json:"y,omitempty"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 02 23:02:35 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt_test.go

    			}
    		})
    	}
    }
    
    func initJWKSServer() *httptest.Server {
    	server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		const jsonkey = `{"keys":
           [
             {"kty":"RSA",
    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)
Back to top