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