oauth

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: MIT Imports: 5 Imported by: 0

README

Space / OAuth 2 provider

A user management microservice; OAuth 2 provider

Issues

Please take a look at /issues

License

MIT License © Ewerton Assis

Documentation

Index

Constants

View Source
const (
	// Error types
	InvalidRequest          string = "invalid_request"
	UnauthorizedClient      string = "unauthorized_client"
	AccessDenied            string = "access_denied"
	UnsupportedResponseType string = "unsupported_response_type"
	InvalidScope            string = "invalid_scope"
	ServerError             string = "server_error"
	TemporarilyUnavailable  string = "temporarily_unavailable"
	UnsupportedGrantType    string = "unsupported_grant_type"
	InvalidGrant            string = "invalid_grant"
	InvalidSession          string = "invalid_session"
	InvalidRedirectURI      string = "invalid_redirect_uri"

	// Grant types
	AuthorizationCode string = "authorization_code"
	RefreshToken      string = "refresh_token"
	Password          string = "password"
	ClientCredentials string = "client_credentials"

	// Response types
	Code  string = "code"
	Token string = "token"
)

Variables

This section is empty.

Functions

func AccessAuthentication

func AccessAuthentication(token string) models.Session

func AccessTokenRequest

func AccessTokenRequest(data utils.H) (utils.H, error)

func AuthorizationCodeGrant

func AuthorizationCodeGrant(data utils.H) (utils.H, error)

func ClientAuthentication

func ClientAuthentication(authorizationHeader string) models.Client

func RefreshTokenRequest

func RefreshTokenRequest(data utils.H) (utils.H, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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