auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionCheck

type SessionCheck struct {
	SessionManager session.Manager
	AuthURL        string
	ACLHandler     func(events.Request, session.Session) (bool, error)
}

SessionCheck defines a helper for checking session validity

func (*SessionCheck) AuthFunc

func (sc *SessionCheck) AuthFunc(req events.Request) (events.Response, error)

AuthFunc checks for valid auth using GitHub OAuth

Jump to

Keyboard shortcuts

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