request

package
Version: v0.0.0-...-920ada6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2ClientCredentialRequest

type OAuth2ClientCredentialRequest struct {
	GrantType    string `form:"grant_type" validate:"required,oneof=client_credentials"`
	Scope        string `form:"scope" validate:"required"`
	ClientID     string `form:"client_id" validate:"required"`
	ClientSecret string `form:"client_secret" validate:"required"`
}

OAuth2ClientCredentialRequest POST oauth2/token validation form

type OAuth2PasswordCredentialRequest

type OAuth2PasswordCredentialRequest struct {
	GrantType    string `form:"grant_type" validate:"required,oneof=password"`
	Scope        string `form:"scope" validate:"required"`
	Username     string `form:"username" validate:"required"`
	Password     string `form:"password" validate:"required"`
	ClientID     string `form:"client_id" validate:"required"`
	ClientSecret string `form:"client_secret" validate:"required"`
}

OAuth2PasswordCredentialRequest POST oauth2/token validation form

type OAuth2RefreshTokenRequest

type OAuth2RefreshTokenRequest struct {
	GrantType    string `form:"grant_type" validate:"required,oneof=refresh_token"`
	Scope        string `form:"scope" validate:"required"`
	ClientID     string `form:"client_id" validate:"required"`
	ClientSecret string `form:"client_secret" validate:"required"`
	RefreshToken string `form:"refresh_token" validate:"required"`
}

OAuth2RefreshTokenRequest POST oauth2/token validation form

Jump to

Keyboard shortcuts

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