auth

package
v0.0.0-...-3356bae Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: LGPL-2.1 Imports: 5 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 ProviderDrone

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

func (*ProviderDrone) GrantIntent

func (p *ProviderDrone) 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(providers map[string]bool, repoUser *db.RepoDrones) *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