gothfiberv2

package module
v0.0.0-...-1d2a705 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 15 Imported by: 0

README

gothfiberv2

Wrapper for goth library to use with Fiber V2 Framework

Installation

go get github.com/podanypepa/gothfiberv2

Supported Providers

  • Amazon
  • Apple
  • Auth0
  • Azure AD
  • Battle.net
  • Bitbucket
  • Box
  • Cloud Foundry
  • Dailymotion
  • Deezer
  • DigitalOcean
  • Discord
  • Dropbox
  • Eve Online
  • Facebook
  • Fitbit
  • Gitea
  • GitHub
  • Gitlab
  • Google
  • Google+ (deprecated)
  • Heroku
  • InfluxCloud
  • Instagram
  • Intercom
  • Kakao
  • Lastfm
  • Linkedin
  • LINE
  • Mailru
  • Meetup
  • MicrosoftOnline
  • Naver
  • Nextcloud
  • OneDrive
  • OpenID Connect (auto discovery)
  • Paypal
  • SalesForce
  • Shopify
  • Slack
  • Soundcloud
  • Spotify
  • Steam
  • Strava
  • Stripe
  • Tumblr
  • Twitch
  • Twitter
  • Typetalk
  • Uber
  • VK
  • Wepay
  • Xero
  • Yahoo
  • Yammer
  • Yandex

Linting

make
Linting tools

We are Fast and Comfy

fastandcomfy.io

We’re hosting apps and services that are ready for you to use in an instant. No need for installation, configuration, or worrying. Just what you need in a matter of seconds. It’s fast and comfy.

We’re changing the world of hosting.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Session is Fiber session
	Session *session.Session
)

Functions

func BeginAuthHandler

func BeginAuthHandler(ctx *fiber.Ctx)

BeginAuthHandler start auth

func CompleteUserAuth

func CompleteUserAuth(ctx *fiber.Ctx) (goth.User, error)

CompleteUserAuth return User from Fiber Context

func GetAuthURL

func GetAuthURL(ctx *fiber.Ctx) (string, error)

GetAuthURL return Auth URL from Fiber Context

func GetContextWithProvider

func GetContextWithProvider(ctx *fiber.Ctx, provider string) *fiber.Ctx

GetContextWithProvider return new Context with provider

func GetFromSession

func GetFromSession(key string, ctx *fiber.Ctx) (string, error)

GetFromSession read value by key from session

func GetProviderName

func GetProviderName(ctx *fiber.Ctx) (string, error)

GetProviderName return provider name from Fiber Context

func GetState

func GetState(ctx *fiber.Ctx) string

GetState return state from Fiber Context

func Logout

func Logout(ctx *fiber.Ctx)

Logout destroy session

func SetState

func SetState(ctx *fiber.Ctx) string

SetState set state from Query of Fiber

func StoreInSession

func StoreInSession(key string, value string, ctx *fiber.Ctx) error

StoreInSession save into session valuee by to key

Types

type Params

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

Params from Fiber Ctx

func (*Params) Get

func (p *Params) Get(key string) string

Get from Params

Jump to

Keyboard shortcuts

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