auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct{}

func (*AuthClient) AuthInit

func (h *AuthClient) AuthInit(e *echo.Echo)

AuthInit initialize authentication

func (*AuthClient) AzureAuth

func (h *AuthClient) AzureAuth(next echo.HandlerFunc, c echo.Context) error

func (*AuthClient) AzureAuthInit

func (h *AuthClient) AzureAuthInit(e *echo.Echo)

AzureAuthInit initialize authentication

func (*AuthClient) OktaAuth

func (h *AuthClient) OktaAuth(next echo.HandlerFunc, c echo.Context) error

OktaAuth ...

func (*AuthClient) OktaAuthInit

func (h *AuthClient) OktaAuthInit(e *echo.Echo)

OktaAuthInit initialize authentication

type Exchange

type Exchange struct {
	Error            string `json:"error,omitempty"`
	ErrorDescription string `json:"error_description,omitempty"`
	AccessToken      string `json:"access_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
	ExpiresIn        int    `json:"expires_in,omitempty"`
	Scope            string `json:"scope,omitempty"`
	IDToken          string `json:"id_token,omitempty"`
}

Exchange ...

type User

type User struct {
	Email       string `json:"mail"`
	DisplayName string `json:"displayName"`
	GivenName   string `json:"givenName"`
	Surname     string `json:"surname"`
}

User struct

Jump to

Keyboard shortcuts

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