gitlab

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthProvider

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

OAuthProvider provides oauth config for gitlab

func New

func New(baseURL *url.URL, clientID, clientSecret string) *OAuthProvider

New returns a gitlab oauth provider

func (*OAuthProvider) Config

func (provider *OAuthProvider) Config() *oauth2.Config

Config returns the gitlab oauth2 config

func (*OAuthProvider) UserInfo

func (provider *OAuthProvider) UserInfo(authToken string) (uint, string, error)

UserInfo returns the user id and username

Jump to

Keyboard shortcuts

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