client_credentials_dto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrantTypeClientCredentials = "client_credentials"
	SecretLength               = 32
	ClientIdLength             = 16
)

Variables

This section is empty.

Functions

func GenerateClientID

func GenerateClientID(length int) string

Types

type ClientCredentials

type ClientCredentials struct {
	GrantType string `json:"grant_type"`

	// User for client_credentials grant type
	ClientId     string `json:"client_id"`
	ClientName   string `json:"client_name"`
	AppName      string `json:"app_name"`
	AppDetails   string `json:"app_details"`
	ClientSecret string `json:"client_secret"`
	DateCreated  string `json:"date_created"`
}

func (*ClientCredentials) Validate

func (credentials *ClientCredentials) Validate() *rest_errors.RestErr

type ClientCredentialsCreateRequest

type ClientCredentialsCreateRequest struct {
	ClientName string `json:"client_name"`
	AppName    string `json:"app_name"`
	AppDetails string `json:"app_details"`
}

func (*ClientCredentialsCreateRequest) Validate

func (request *ClientCredentialsCreateRequest) Validate() *rest_errors.RestErr

type ClientCredentialsRequest

type ClientCredentialsRequest struct {
	GrantType string `json:"grant_type"`

	// User for client_credentials grant type
	ClientId string `json:"client_id"`
}

func (*ClientCredentialsRequest) Validate

func (request *ClientCredentialsRequest) Validate() *rest_errors.RestErr

Jump to

Keyboard shortcuts

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