auth

package
v0.0.0-...-748ae4c Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GrantIntent(userCredential *dto.UserCredIn, data interface{}) (*dto.GrantIntentResponse, *dto.Problem)
}

type ProviderEvote

type ProviderEvote struct {
	// contains filtered or unexported fields
}

func (*ProviderEvote) GrantIntent

func (p *ProviderEvote) GrantIntent(uCred *dto.UserCredIn, options interface{}) (*dto.GrantIntentResponse, *dto.Problem)

type SvcAuthentication

type SvcAuthentication struct {
	AuthProviders map[string]Provider // similar to slices, maps are reference types.
}

func NewSvcAuthentication

func NewSvcAuthentication(conf *utils.SvcConfig, repoUser *db.RepoUsers) *SvcAuthentication

NewSvcAuthentication creates the authentication service. It provides the methods to make the authentication intent with the register providers.

- providers [Array] ~ Maps of providers string token / identifiers

- conf [*SvcConfig] ~ App conf instance pointer

Jump to

Keyboard shortcuts

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