identityclient

package
v2.33.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 10 Imported by: 0

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) Get

func (c *IdentityClient) Get(ctx context.Context) (*http.Response, error)

Get wrapper for dp-net Get

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

type IdentityInterface

type IdentityInterface interface {
	Get(ctx context.Context, url string) (*http.Response, error)
}

IdentityInterface interface contains one method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL