oauth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package oauth inits oauth providers using goth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllowed

func IsAllowed(user goth.User, config Config) bool

IsAllowed checks if authentication is allowed depending on auth providers.

func NewAuth

func NewAuth(config Config)

NewAuth inits oauth providers.

Types

type Config

type Config struct {
	Prod                 bool
	RootURL              string
	GoogleClientID       string
	GoogleClientSecret   string
	GoogleAllowedDomains []string
	FrontendURL          string
}

Config configuration struct for oauth.

Jump to

Keyboard shortcuts

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