Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWSProvider ¶
type JWSProvider interface { Sign(ctx context.Context, token []byte) ([]byte, error) Verify(ctx context.Context, token []byte) error GetKeySet(ctx context.Context) ([]byte, error) }
JWSProvider is used to sign and verify JWT payloads
type MockJWSProvider ¶
MockJWSProvider is an autogenerated mock type for the JWSProvider type
func NewMockJWSProvider ¶
func NewMockJWSProvider(t mockConstructorTestingTNewMockJWSProvider) *MockJWSProvider
NewMockJWSProvider creates a new instance of MockJWSProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockJWSProvider) GetKeySet ¶
func (_m *MockJWSProvider) GetKeySet(ctx context.Context) ([]byte, error)
GetKeySet provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.