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: 0

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