sessions

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sessions provides session management for the UI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(router gin.IRouter, bindplane exposedserver.BindPlane)

AddRoutes adds the login, logout, and verify route used for session authentication.

func Login

func Login(ctx *gin.Context, bindplane exposedserver.BindPlane)

Login is the handler for the login page

func Logout

func Logout(ctx *gin.Context, bindplane exposedserver.BindPlane)

Logout is the handler for the logout button

func Verify

func Verify(c *gin.Context, bindplane exposedserver.BindPlane)

Verify is the handler for the verify route that checks if the user is authenticated

Types

This section is empty.

Jump to

Keyboard shortcuts

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