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
Click to show internal directories.
Click to hide internal directories.