Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorWrongKey = "WrongKey" ErrorMissingToken = "NoIdToken" ErrorExpiredToken = "ExpiredToken" ErrorScope = "Scope" ErrorState = "State" ErrorNonce = "Nonce" ErrorAudience = "Audience" ErrorForbidden = "Forbidden" ErrorBadCode = "code" ErrorBadTokenForm = "badToken" )
Variables ¶
This section is empty.
Functions ¶
func HandleHello ¶
func HandleHello(w http.ResponseWriter, r *http.Request)
Types ¶
type AccessTokenData ¶
type MalformedTokenData ¶
type MockAuthServer ¶
type MockAuthServer struct { Issuer string Server *httptest.Server Nonce string TriggerError string T *testing.T TestRoles []string TestSubj string TestEmail string // contains filtered or unexported fields }
func NewMockAuthServer ¶
func NewMockAuthServer(clientID, secret string, claims map[string]interface{}) *MockAuthServer
func (*MockAuthServer) CheckTest ¶
func (as *MockAuthServer) CheckTest(errorType string) bool
func (*MockAuthServer) Jwks ¶
func (as *MockAuthServer) Jwks() []byte
func (*MockAuthServer) Shutdown ¶
func (as *MockAuthServer) Shutdown()
type MockResourceServer ¶
func NewMockResourceServer ¶
func NewMockResourceServer(path string, wrapperFunc http.HandlerFunc) *MockResourceServer
func (*MockResourceServer) Shutdown ¶
func (as *MockResourceServer) Shutdown()
type SigningKey ¶
type SigningKey struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.