Categorygithub.com/bsurc/oauth2
modulepackage
0.2.5
Repository: https://github.com/bsurc/oauth2.git
Documentation: pkg.go.dev

# README

oauth2

OAuth2 web handler for Google/BSU

# Functions

NewClient returns a client that has two helper functions, one is an AuthHandler with needs to be installed at the same address as redirect, the other is a Shim that checks for valid credentials and rejects the unauthorized users.

# Constants

BSUEmail is a valid regexp for any BSU address.

# Structs

Client supplies the ability to authenticate via OAuth2 on Google, but more specifically for BSU people through Google.
Config holds the information necessary to create a new client.

# Type aliases

No description provided by the author