identityclient

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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