oauth2

package
v0.0.0-...-64e7420 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(router *mux.Router, cfg *Config)

Setup the OAuth2 server in the same server that is serving the API In a real world scenario, this would be a separate server so that /authorize and /token are in the auth server and validation is in the API/resource server Please note that /credentials is a stub for generating client credentials and should not be used in production

Types

type Config

type Config struct {
	ID     string
	Secret string
	Domain string
}

Jump to

Keyboard shortcuts

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