Back to godoc.org

Package github

v1.5.2
Latest Go to latest

The highest tagged major version is .

Published: Jan 24, 2019 | License: MIT | Module: github.com/blackironj/gin-oauth2

Overview

Package github provides you access to Github's OAuth2 infrastructure.

Index

func Auth

func Auth() gin.HandlerFunc

func GetLoginURL

func GetLoginURL(state string) string

func LoginHandler

func LoginHandler(ctx *gin.Context)

func Session

func Session(name string) gin.HandlerFunc

func Setup

func Setup(redirectURL, credFile string, scopes []string, secret []byte)

type Credentials

type Credentials struct {
	ClientID     string `json:"clientid"`
	ClientSecret string `json:"secret"`
}

Credentials stores google client-ids.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier