auth

package
v0.0.0-...-82d4fcb Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProviderToContext

func AddProviderToContext(c *gin.Context, value interface{}) *http.Request

func Begin

func Begin() gin.HandlerFunc

Begin login with the auth provider

func CallBack

func CallBack(cfg *utils.ServerConfig, db *datasource.DB) gin.HandlerFunc

CallBack callback to complete auth provider flow

Types

type Claims

type Claims struct {
	Email string `json:"email"`
	jwt.StandardClaims
}

Claims JWT claims

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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