auth

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(app *aero.Application)

Install installs the authentication routes in the application.

func InstallFacebookAuth

func InstallFacebookAuth(app *aero.Application)

InstallFacebookAuth enables Facebook login for the app.

func InstallGoogleAuth

func InstallGoogleAuth(app *aero.Application)

InstallGoogleAuth enables Google login for the app.

func InstallTwitterAuth

func InstallTwitterAuth(app *aero.Application)

InstallTwitterAuth enables Twitter login for the app.

Types

type FacebookUser

type FacebookUser struct {
	ID        string `json:"id"`
	Email     string `json:"email"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Gender    string `json:"gender"`
}

FacebookUser is the user data we receive from Facebook

type GoogleUser

type GoogleUser struct {
	Sub        string `json:"sub"`
	GivenName  string `json:"given_name"`
	FamilyName string `json:"family_name"`
	Email      string `json:"email"`
	Gender     string `json:"gender"`
}

GoogleUser is the user data we receive from Google

type TwitterUser

type TwitterUser struct {
	ID          string `json:"id_str"`
	Email       string `json:"email"`
	Name        string `json:"name"`
	Description string `json:"description"`
	ScreenName  string `json:"screen_name"`
}

TwitterUser is the user data we receive from Twitter

Jump to

Keyboard shortcuts

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