Documentation ¶
Index ¶
- func DecodeIDToken(t *testing.T, token *oauth2.Token) gjson.Result
- func FlexibleServer(t *testing.T, h *http.HandlerFunc) string
- func HTTPServerNoExpectedCallHandler(t *testing.T) http.HandlerFunc
- func HTTPServerNotImplementedHandler(w http.ResponseWriter, _ *http.Request)
- func IntrospectToken(t *testing.T, conf *oauth2.Config, token *oauth2.Token, ...) gjson.Result
- func NewCallbackURL(t *testing.T, prefix string, h http.HandlerFunc) string
- func NewEmptyCookieJar(t *testing.T) *cookiejar.Jar
- func NewEmptyJarClient(t *testing.T) *http.Client
- func NewIDToken(t *testing.T, reg driver.Registry, subject string) string
- func NewIDTokenWithClaims(t *testing.T, reg driver.Registry, claims djwt.MapClaims) string
- func NewIDTokenWithExpiry(t *testing.T, reg driver.Registry, subject string, exp time.Duration) string
- func NewLoginConsentUI(t *testing.T, c *config.Provider, login, consent http.HandlerFunc)
- func NewOAuth2Server(t *testing.T, reg driver.Registry) (publicTS, adminTS *httptest.Server)
- func Userinfo(t *testing.T, token *oauth2.Token, publicTS *httptest.Server) gjson.Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlexibleServer ¶
func FlexibleServer(t *testing.T, h *http.HandlerFunc) string
func HTTPServerNoExpectedCallHandler ¶
func HTTPServerNoExpectedCallHandler(t *testing.T) http.HandlerFunc
func HTTPServerNotImplementedHandler ¶
func HTTPServerNotImplementedHandler(w http.ResponseWriter, _ *http.Request)
func IntrospectToken ¶
func NewCallbackURL ¶
func NewIDTokenWithClaims ¶
func NewIDTokenWithExpiry ¶
func NewLoginConsentUI ¶
func NewOAuth2Server ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.