provider

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(db *gorm.DB, config *config.Config) http.Handler

func Callback

func Callback(db *gorm.DB, config *config.Config) http.HandlerFunc

Types

type Data

type Data struct {
	Data PictureData `json:"data"`
}

type FacebookProvider

type FacebookProvider struct {
	// contains filtered or unexported fields
}

type FacebookUser

type FacebookUser struct {
	Email   *string `json:"email"`
	Name    *string `json:"name"`
	Picture Data    `json:"picture"`
}

type GithubProvider

type GithubProvider struct {
	// contains filtered or unexported fields
}

type GoogleProvider

type GoogleProvider struct {
	// contains filtered or unexported fields
}

func NewGoogleProvider

func NewGoogleProvider(c *config.Config) *GoogleProvider

type PictureData

type PictureData struct {
	IsSilhouette bool   `json:"is_silhouette"`
	URL          string `json:"url"`
}

type Provider

type Provider interface {
	// contains filtered or unexported methods
}

type UserData

type UserData struct {
	Name     *string
	Avatar   *string
	Email    *string
	Verified bool
}

Jump to

Keyboard shortcuts

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