oauth2

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

README

Oauth2

List of Oauth2 http apis

[GET] /v1/login/oauth/authorize

Request

Query:

  • client_id: user client_id, used for client_credentials grant
  • redirect_uri: user authorization callback URL
  • state: random string to protect againts forgery attacks
  • login: specific account to use for signing in
Example

Header:

  • grant: client_credentials

/v1/oauth2/auth?client_id=xxx&client_secret=xxxx

Header:

  • grant: password

/v1/oauth2/auth?username=xxxx&password=xxx

[POST] **/v1/login/oauth/authenticate

Header:

  • grant_type: password|client_credentials
  • otp: required

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler for oauth2

Jump to

Keyboard shortcuts

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