loginservice

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceLogin

type ServiceLogin interface {
	GetLoginFunc(ctx context.Context) http.HandlerFunc
	GetLogoutFunc(ctx context.Context) http.HandlerFunc
	GetRefreshFunc() http.HandlerFunc
	GetVerifyTokenFunc(ctx context.Context) http.HandlerFunc
}

ServiceLogin represents external login service logic

func NewServiceLogin

func NewServiceLogin(ext extension.BaseExtension) ServiceLogin

NewServiceLogin initializes a new login service

type ServiceLoginImpl

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

ServiceLoginImpl represents the service implementation object

func (ServiceLoginImpl) GetLoginFunc

func (l ServiceLoginImpl) GetLoginFunc(ctx context.Context) http.HandlerFunc

GetLoginFunc returns a function that can authenticate against both Slade 360 and Firebase

func (ServiceLoginImpl) GetLogoutFunc

func (l ServiceLoginImpl) GetLogoutFunc(ctx context.Context) http.HandlerFunc

GetLogoutFunc logs the user out of Firebase

func (ServiceLoginImpl) GetRefreshFunc

func (l ServiceLoginImpl) GetRefreshFunc() http.HandlerFunc

GetRefreshFunc is used to refresh OAuth tokens

func (ServiceLoginImpl) GetVerifyTokenFunc

func (l ServiceLoginImpl) GetVerifyTokenFunc(ctx context.Context) http.HandlerFunc

GetVerifyTokenFunc confirms that an EDI access token (supplied) is valid. If it is valid, it exchanges it for a Firebase ID token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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