dto

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorDetails

type ErrorDetails struct {
	Msg         string `json:"error"`
	Description string `json:"error_description,omitempty"`
}

type IntrospectTokenResult added in v0.1.3

type IntrospectTokenResult struct {
	Exp      int           `json:"exp,omitempty"`
	Nbf      int           `json:"nbf,omitempty"`
	Iat      int           `json:"iat,omitempty"`
	Aud      StringOrArray `json:"aud,omitempty"`
	Active   bool          `json:"active,omitempty"`
	AuthTime int           `json:"auth_time,omitempty"`
	Jti      string        `json:"jti,omitempty"`
	Type     string        `json:"typ,omitempty"`
}

type StringOrArray added in v0.1.3

type StringOrArray []string

StringOrArray represents a value that can either be a string or an array of strings

type Token

type Token struct {
	AccessToken     string `json:"access_token"`
	Expires         int    `json:"expires_in"`
	RefreshExpires  int    `json:"refresh_expires_in"`
	RefreshToken    string `json:"refresh_token"`
	TokenType       string `json:"token_type"`
	NotBeforePolicy int    `json:"not-before-policy"`
	Session         string `json:"session_state"`
	Scope           string `json:"scope"`
}

type TokenGenerationData

type TokenGenerationData struct {
	ClientId     string `json:"client_id" schema:"client_id"`
	ClientSecret string `json:"client_secret" schema:"client_secret"`
	GrantType    string `json:"grant_type" schema:"grant_type"`
	Scope        string `json:"scope" schema:"scope"`
	Username     string `json:"username" schema:"username"`
	Password     string `json:"password" schema:"password"`
	RefreshToken string `json:"refresh_token" schema:"refresh_token"`
}

Jump to

Keyboard shortcuts

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