auth

package
v0.0.0-...-f3dad25 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StandaloneRedirectURL for Standalone applications
	StandaloneRedirectURL = "urn:ietf:wg:oauth:2.0:oob"
)

Variables

View Source
var ShikimoriEndpoint = oauth2.Endpoint{
	AuthURL:  "https://shikimori.org/oauth/authorize",
	TokenURL: "https://shikimori.org/oauth/token",
}

ShikimoriEndpoint for Shikimori OAuth2

Functions

func GetAuthCodeURL

func GetAuthCodeURL(conf *oauth2.Config) string

GetAuthCodeURL returns AuthCodeURL

func GetCodeByLogin

func GetCodeByLogin(url, appName, login, password string) (string, error)

GetCodeByLogin gets auth code by login + password. Application redirect url must be StandaloneRedirectURL (see endpoind.go).

Types

This section is empty.

Jump to

Keyboard shortcuts

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