Documentation ¶
Index ¶
- type Config
- type FakeClaims
- type FakeJWTServer
- func (f *FakeJWTServer) JwksHandler(writer http.ResponseWriter, request *http.Request)
- func (f *FakeJWTServer) Serve() error
- func (f *FakeJWTServer) TokenHandler(writer http.ResponseWriter, request *http.Request)
- func (f *FakeJWTServer) WithAudience(audience string) *FakeJWTServer
- func (f *FakeJWTServer) WithEmail(email string) *FakeJWTServer
- func (f *FakeJWTServer) WithExpires(expires time.Duration) *FakeJWTServer
- func (f *FakeJWTServer) WithGrandType(grantType string) *FakeJWTServer
- func (f *FakeJWTServer) WithID(id string) *FakeJWTServer
- func (f *FakeJWTServer) WithIssuer(issuer string) *FakeJWTServer
- func (f *FakeJWTServer) WithPort(port int) *FakeJWTServer
- func (f *FakeJWTServer) WithSubject(subject string) *FakeJWTServer
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClaims ¶
type FakeClaims struct { jwt.RegisteredClaims GrantType string `json:"grant_type,omitempty"` Email string `json:"email,omitempty"` }
type FakeJWTServer ¶
type FakeJWTServer struct {
// contains filtered or unexported fields
}
func NewFakeJwtServer ¶
func NewFakeJwtServer() *FakeJWTServer
func (*FakeJWTServer) JwksHandler ¶
func (f *FakeJWTServer) JwksHandler(writer http.ResponseWriter, request *http.Request)
func (*FakeJWTServer) Serve ¶
func (f *FakeJWTServer) Serve() error
func (*FakeJWTServer) TokenHandler ¶
func (f *FakeJWTServer) TokenHandler(writer http.ResponseWriter, request *http.Request)
func (*FakeJWTServer) WithAudience ¶
func (f *FakeJWTServer) WithAudience(audience string) *FakeJWTServer
func (*FakeJWTServer) WithEmail ¶
func (f *FakeJWTServer) WithEmail(email string) *FakeJWTServer
func (*FakeJWTServer) WithExpires ¶
func (f *FakeJWTServer) WithExpires(expires time.Duration) *FakeJWTServer
func (*FakeJWTServer) WithGrandType ¶
func (f *FakeJWTServer) WithGrandType(grantType string) *FakeJWTServer
func (*FakeJWTServer) WithID ¶
func (f *FakeJWTServer) WithID(id string) *FakeJWTServer
func (*FakeJWTServer) WithIssuer ¶
func (f *FakeJWTServer) WithIssuer(issuer string) *FakeJWTServer
func (*FakeJWTServer) WithPort ¶
func (f *FakeJWTServer) WithPort(port int) *FakeJWTServer
func (*FakeJWTServer) WithSubject ¶
func (f *FakeJWTServer) WithSubject(subject string) *FakeJWTServer
Click to show internal directories.
Click to hide internal directories.