credentials

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialsApiController

func NewCredentialsApiController(s CredentialsService) api.Router

NewCredentialsApiController creates a default api controller

Types

type CredentialRepository

type CredentialRepository interface {
	// contains filtered or unexported methods
}

func NewCredentialRepository

func NewCredentialRepository(db *sql.DB) CredentialRepository

type CredentialsService

type CredentialsService interface {
	DisableCredentials(auth tmw.TumblerClaims, identityID string, credentialID string) (*client.Credential, error)
	ListCredentials(tmw.TumblerClaims, string) ([]client.Credential, error)

	Exists(credentialID, tenantID string) (bool, error)
	Register(identityID, credentialID, tenantID string) (*client.Credential, error)

	Login(client.Login, string, string) (*client.Credential, error)
	Record(credentialID string, tenantID string, nonce string, ip string) error
}

CredentialsApiServicer defines the api actions for the CredentialsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.

func NewCredentialsService

func NewCredentialsService(time stime.TimeService, repository CredentialRepository) CredentialsService

NewCredentialsService creates a default api service

Jump to

Keyboard shortcuts

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