oauth2

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserFromUserInfoURL

func UserFromUserInfoURL(resp *http.Response, providerName string) (*db.User, error)

UserFromUserInfo maps provider-specific user info to our standard User struct.

When integrating a new OAuth2 provider, first add a case statement for the new provider name. Then create a raw struct that matches the provider's user info JSON response. Map the fields to the standard db.User struct while ensuring required fields like email verification are properly validated before returning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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