Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityClient ¶
type IdentityClient struct {
Client,
BasicClient IdentityInterface
JWTKeys map[string]string
IdentityEndpoint string
CognitoRSAParser *jwt.CognitoRSAParser
}
IdentityClient contains identity client handler
func NewIdentityClient ¶
func NewIdentityClient(identityEndpoint string, maxRetries int) (*IdentityClient, error)
NewIdentityClient identity client constructor
func (*IdentityClient) GetJWTVerificationKeys ¶
func (c *IdentityClient) GetJWTVerificationKeys(ctx context.Context) error
GetJWTVerificationKeys gets the JWT verification keys - takes identity client as argument
func (*IdentityClient) IdentityHealthCheck ¶
func (c *IdentityClient) IdentityHealthCheck(ctx context.Context, state *health.CheckState) error
IdentityHealthCheck reports on status of jwt keys request against identity service
Click to show internal directories.
Click to hide internal directories.