dto

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 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 OpenIdConfiguration added in v0.9.2

type OpenIdConfiguration struct {
	Issuer                             string   `json:"issuer"`
	AuthorizationEndpoint              string   `json:"authorization_endpoint"`
	TokenEndpoint                      string   `json:"token_endpoint"`
	IntrospectionEndpoint              string   `json:"introspection_endpoint"`
	UserInfoEndpoint                   string   `json:"userinfo_endpoint"`
	EndSessionEndpoint                 string   `json:"end_session_endpoint"`
	DeviceAuthorizationEndpoint        string   `json:"device_authorization_endpoint"`
	RegistrationEndpoint               string   `json:"registration_endpoint"`
	PushedAuthorizationRequestEndpoint string   `json:"pushed_authorization_request_endpoint"`
	BackChannelAuthorizationEndpoint   string   `json:"back_channel_authorization_endpoint"`
	GrantTypesSupported                []string `json:"grant_types_supported"`
	ResponseTypesSupported             []string `json:"response_types_supported"`
	// JwksUri                            string   `json:"jwks_uri"` // TODO (UMV): Uncomment if required
	// FrontChannelLogoutSessionSupported bool         // TODO (UMV): Uncomment if required
	// FrontChannelLogoutSupported bool                // TODO (UMV): Uncomment if required
	// CheckSessionIframe string                       // TODO (UMV): Uncomment if required
	// SubjectTypeSupported []string                   // TODO (UMV): Uncomment if required
	//IdTokenSigningAlgValuesSupported                   []string `json:"id_token_signing_alg_values_supported"`
	//IdTokenEncryptionEncValuesSupported                []string `json:"id_token_encryption_enc_values_supported"`
	//UserInfoSigningAlgValuesSupported                  []string `json:"userinfo_signing_alg_values_supported"`
	//RequestObjectSigningAlgValuesSupported             []string `json:"request_object_signing_alg_values_supported"`
	//RequestEncryptionEncValuesSupported                []string `json:"request_encryption_enc_values_supported"`
	ResponseModesSupported []string `json:"response_modes_supported"`
	//TokenEndpointAuthSigningAlgValuesSupported         []string `json:"token_endpoint_auth_signing_alg_values_supported"`
	//IntrospectionEndpointAuthMethodsSupported          []string `json:"introspection_endpoint_auth_methods_supported"`
	//IntrospectionEndpointAuthSigningAlgValuesSupported []string `json:"introspection_endpoint_auth_signing_alg_values_supported"`
	//AuthorizationSigningAlgValuesSupported             []string `json:"authorization_signing_alg_values_supported"`
	//AuthorizationEncryptionAlgValuesSupported          []string `json:"authorization_encryption_alg_values_supported"`
	//AuthorizationEncryptionEncValuesSupported          []string `json:"authorization_encryption_enc_values_supported"`
	ClaimsSupported                      []string `json:"claims_supported"`
	ClaimTypesSupported                  []string `json:"claim_types_supported"`
	ClaimsParameterSupported             bool     `json:"claims_parameter_supported"`
	RequestParameterSupported            bool     `json:"request_parameter_supported"`
	CodeChallengeMethodsSupported        []string `json:"code_challenge_methods_supported"`
	TlsClientCertificateBoundAccessToken bool     `json:"tls_client_certificate_bound_access_token"`
}

OpenIdConfiguration struct that represents OpenId Configuration like in KeyCloak todo(UMV): this class would have only those properties (others commented)

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