authconnector

package
v0.0.0-...-4df811a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package authconnector provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConnector

type AuthConnector interface {
	// Returns a ready-to-insert User instance
	// filled with data obtained from a third party.
	// The token must be retrieved by the cli
	GetUserInfo(token *oauth2.Token) (models.User, error)
}

func GetConnectorForAccountType

func GetConnectorForAccountType(
	accountType models.AccountType,
) (AuthConnector, error)

Factory method returning the appropriate AuthConnector for the given accontType

Jump to

Keyboard shortcuts

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