authserver

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceAuthServer

func NewServiceAuthServer(config authutils.Config) (*client, error)

NewServiceAuthServer is the constructor which initializes health crm's authentication mechanism

Types

type ServiceAuthServer

type ServiceAuthServer interface {
	LoginUser(ctx context.Context, input *authutils.LoginUserPayload) (*authutils.OAUTHResponse, error)
	RefreshToken(ctx context.Context, refreshToken string) (*authutils.OAUTHResponse, error)
	ValidateUser(ctx context.Context, authTokens *authutils.OAUTHResponse) (*authutils.MeResponse, error)
	HasValidSlade360BearerToken(ctx context.Context, r *http.Request) (bool, map[string]string, *authutils.TokenIntrospectionResponse)
}

ServiceAuthServer holds the method defined in authutils library

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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