Documentation
¶
Overview ¶
Package passport implements the OAuth2 protocol for authenticating users through passport.
Index ¶
- Constants
- func Authorize(ctx *fiber.Ctx) error
- func Callback(ctx *fiber.Ctx) error
- func GenOAuthState(ctx *fiber.Ctx) (string, *common.Result)
- func GetOAuthState(ctx *fiber.Ctx) (string, *common.Result)
- func GetUser(token string) *common.Result
- func Middleware(ctx *fiber.Ctx) error
- type Config
- type User
Constants ¶
View Source
const SESSION_STATE_KEY = "oauthStateString"
Variables ¶
This section is empty.
Functions ¶
func GenOAuthState ¶
func GetOAuthState ¶
func Middleware ¶
func Middleware(ctx *fiber.Ctx) error
Types ¶
Click to show internal directories.
Click to hide internal directories.