Help us shape the future of Go! Take the 2026 Go Developer Survey

oidclogin

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: LGPL-2.1 Imports: 9 Imported by: 0

README

oidclogin

OpenID Connect Login SDK written in Go for Gin.

The following environment variables are expected to be set:

OIDC_CLIENT_ID=<client id>
OIDC_CLIENT_SECRET=<client secret>
OIDC_ISSUE=<issuer url>

If these env vars are not present, then depending on configuration, stubs will be used for the endpoints or the program will crash

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallbackHandler

func CallbackHandler(c *gin.Context)

func Configure

func Configure(r *gin.Engine, app_url string, default_redirect string, stubs_on_unconfigured bool)

func EnsureLogin

func EnsureLogin(redirectFail bool) func(c *gin.Context)

func LoginHandler

func LoginHandler(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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