Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
421 lines
14 KiB
Go
421 lines
14 KiB
Go
/*
|
|
Ory Identities API
|
|
|
|
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more.
|
|
|
|
API version:
|
|
Contact: office@ory.sh
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package client
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the LoginFlowTestDebugPayload type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &LoginFlowTestDebugPayload{}
|
|
|
|
// LoginFlowTestDebugPayload Contains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast radius of the debug payload leaking through audit logs or admin browsers.
|
|
type LoginFlowTestDebugPayload struct {
|
|
Error *LoginFlowTestStepError `json:"error,omitempty"`
|
|
// Claims extracted from the ID token.
|
|
IdTokenClaims map[string]interface{} `json:"id_token_claims,omitempty"`
|
|
// Input JSON that was fed into the Jsonnet mapper.
|
|
JsonnetInput map[string]interface{} `json:"jsonnet_input,omitempty"`
|
|
// URL of the Jsonnet mapper that was executed on the claims.
|
|
JsonnetMapperUrl *string `json:"jsonnet_mapper_url,omitempty"`
|
|
// Output JSON returned by the Jsonnet mapper.
|
|
JsonnetOutput map[string]interface{} `json:"jsonnet_output,omitempty"`
|
|
// Anything the Jsonnet mapper wrote to standard error.
|
|
JsonnetStderr *string `json:"jsonnet_stderr,omitempty"`
|
|
// Identity-schema validation errors produced from the mapped traits.
|
|
SchemaValidationErrors []LoginFlowTestSchemaValidationError `json:"schema_validation_errors,omitempty"`
|
|
// Claims returned from the provider's userinfo endpoint, if any.
|
|
Userinfo map[string]interface{} `json:"userinfo,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _LoginFlowTestDebugPayload LoginFlowTestDebugPayload
|
|
|
|
// NewLoginFlowTestDebugPayload instantiates a new LoginFlowTestDebugPayload object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewLoginFlowTestDebugPayload() *LoginFlowTestDebugPayload {
|
|
this := LoginFlowTestDebugPayload{}
|
|
return &this
|
|
}
|
|
|
|
// NewLoginFlowTestDebugPayloadWithDefaults instantiates a new LoginFlowTestDebugPayload object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewLoginFlowTestDebugPayloadWithDefaults() *LoginFlowTestDebugPayload {
|
|
this := LoginFlowTestDebugPayload{}
|
|
return &this
|
|
}
|
|
|
|
// GetError returns the Error field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetError() LoginFlowTestStepError {
|
|
if o == nil || IsNil(o.Error) {
|
|
var ret LoginFlowTestStepError
|
|
return ret
|
|
}
|
|
return *o.Error
|
|
}
|
|
|
|
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetErrorOk() (*LoginFlowTestStepError, bool) {
|
|
if o == nil || IsNil(o.Error) {
|
|
return nil, false
|
|
}
|
|
return o.Error, true
|
|
}
|
|
|
|
// HasError returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasError() bool {
|
|
if o != nil && !IsNil(o.Error) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetError gets a reference to the given LoginFlowTestStepError and assigns it to the Error field.
|
|
func (o *LoginFlowTestDebugPayload) SetError(v LoginFlowTestStepError) {
|
|
o.Error = &v
|
|
}
|
|
|
|
// GetIdTokenClaims returns the IdTokenClaims field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetIdTokenClaims() map[string]interface{} {
|
|
if o == nil || IsNil(o.IdTokenClaims) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.IdTokenClaims
|
|
}
|
|
|
|
// GetIdTokenClaimsOk returns a tuple with the IdTokenClaims field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetIdTokenClaimsOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.IdTokenClaims) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.IdTokenClaims, true
|
|
}
|
|
|
|
// HasIdTokenClaims returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasIdTokenClaims() bool {
|
|
if o != nil && !IsNil(o.IdTokenClaims) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIdTokenClaims gets a reference to the given map[string]interface{} and assigns it to the IdTokenClaims field.
|
|
func (o *LoginFlowTestDebugPayload) SetIdTokenClaims(v map[string]interface{}) {
|
|
o.IdTokenClaims = v
|
|
}
|
|
|
|
// GetJsonnetInput returns the JsonnetInput field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetInput() map[string]interface{} {
|
|
if o == nil || IsNil(o.JsonnetInput) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.JsonnetInput
|
|
}
|
|
|
|
// GetJsonnetInputOk returns a tuple with the JsonnetInput field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetInputOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.JsonnetInput) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.JsonnetInput, true
|
|
}
|
|
|
|
// HasJsonnetInput returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasJsonnetInput() bool {
|
|
if o != nil && !IsNil(o.JsonnetInput) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJsonnetInput gets a reference to the given map[string]interface{} and assigns it to the JsonnetInput field.
|
|
func (o *LoginFlowTestDebugPayload) SetJsonnetInput(v map[string]interface{}) {
|
|
o.JsonnetInput = v
|
|
}
|
|
|
|
// GetJsonnetMapperUrl returns the JsonnetMapperUrl field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetMapperUrl() string {
|
|
if o == nil || IsNil(o.JsonnetMapperUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.JsonnetMapperUrl
|
|
}
|
|
|
|
// GetJsonnetMapperUrlOk returns a tuple with the JsonnetMapperUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetMapperUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.JsonnetMapperUrl) {
|
|
return nil, false
|
|
}
|
|
return o.JsonnetMapperUrl, true
|
|
}
|
|
|
|
// HasJsonnetMapperUrl returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasJsonnetMapperUrl() bool {
|
|
if o != nil && !IsNil(o.JsonnetMapperUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJsonnetMapperUrl gets a reference to the given string and assigns it to the JsonnetMapperUrl field.
|
|
func (o *LoginFlowTestDebugPayload) SetJsonnetMapperUrl(v string) {
|
|
o.JsonnetMapperUrl = &v
|
|
}
|
|
|
|
// GetJsonnetOutput returns the JsonnetOutput field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetOutput() map[string]interface{} {
|
|
if o == nil || IsNil(o.JsonnetOutput) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.JsonnetOutput
|
|
}
|
|
|
|
// GetJsonnetOutputOk returns a tuple with the JsonnetOutput field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetOutputOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.JsonnetOutput) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.JsonnetOutput, true
|
|
}
|
|
|
|
// HasJsonnetOutput returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasJsonnetOutput() bool {
|
|
if o != nil && !IsNil(o.JsonnetOutput) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJsonnetOutput gets a reference to the given map[string]interface{} and assigns it to the JsonnetOutput field.
|
|
func (o *LoginFlowTestDebugPayload) SetJsonnetOutput(v map[string]interface{}) {
|
|
o.JsonnetOutput = v
|
|
}
|
|
|
|
// GetJsonnetStderr returns the JsonnetStderr field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetStderr() string {
|
|
if o == nil || IsNil(o.JsonnetStderr) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.JsonnetStderr
|
|
}
|
|
|
|
// GetJsonnetStderrOk returns a tuple with the JsonnetStderr field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetJsonnetStderrOk() (*string, bool) {
|
|
if o == nil || IsNil(o.JsonnetStderr) {
|
|
return nil, false
|
|
}
|
|
return o.JsonnetStderr, true
|
|
}
|
|
|
|
// HasJsonnetStderr returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasJsonnetStderr() bool {
|
|
if o != nil && !IsNil(o.JsonnetStderr) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetJsonnetStderr gets a reference to the given string and assigns it to the JsonnetStderr field.
|
|
func (o *LoginFlowTestDebugPayload) SetJsonnetStderr(v string) {
|
|
o.JsonnetStderr = &v
|
|
}
|
|
|
|
// GetSchemaValidationErrors returns the SchemaValidationErrors field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetSchemaValidationErrors() []LoginFlowTestSchemaValidationError {
|
|
if o == nil || IsNil(o.SchemaValidationErrors) {
|
|
var ret []LoginFlowTestSchemaValidationError
|
|
return ret
|
|
}
|
|
return o.SchemaValidationErrors
|
|
}
|
|
|
|
// GetSchemaValidationErrorsOk returns a tuple with the SchemaValidationErrors field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetSchemaValidationErrorsOk() ([]LoginFlowTestSchemaValidationError, bool) {
|
|
if o == nil || IsNil(o.SchemaValidationErrors) {
|
|
return nil, false
|
|
}
|
|
return o.SchemaValidationErrors, true
|
|
}
|
|
|
|
// HasSchemaValidationErrors returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasSchemaValidationErrors() bool {
|
|
if o != nil && !IsNil(o.SchemaValidationErrors) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSchemaValidationErrors gets a reference to the given []LoginFlowTestSchemaValidationError and assigns it to the SchemaValidationErrors field.
|
|
func (o *LoginFlowTestDebugPayload) SetSchemaValidationErrors(v []LoginFlowTestSchemaValidationError) {
|
|
o.SchemaValidationErrors = v
|
|
}
|
|
|
|
// GetUserinfo returns the Userinfo field value if set, zero value otherwise.
|
|
func (o *LoginFlowTestDebugPayload) GetUserinfo() map[string]interface{} {
|
|
if o == nil || IsNil(o.Userinfo) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.Userinfo
|
|
}
|
|
|
|
// GetUserinfoOk returns a tuple with the Userinfo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *LoginFlowTestDebugPayload) GetUserinfoOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.Userinfo) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Userinfo, true
|
|
}
|
|
|
|
// HasUserinfo returns a boolean if a field has been set.
|
|
func (o *LoginFlowTestDebugPayload) HasUserinfo() bool {
|
|
if o != nil && !IsNil(o.Userinfo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUserinfo gets a reference to the given map[string]interface{} and assigns it to the Userinfo field.
|
|
func (o *LoginFlowTestDebugPayload) SetUserinfo(v map[string]interface{}) {
|
|
o.Userinfo = v
|
|
}
|
|
|
|
func (o LoginFlowTestDebugPayload) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o LoginFlowTestDebugPayload) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Error) {
|
|
toSerialize["error"] = o.Error
|
|
}
|
|
if !IsNil(o.IdTokenClaims) {
|
|
toSerialize["id_token_claims"] = o.IdTokenClaims
|
|
}
|
|
if !IsNil(o.JsonnetInput) {
|
|
toSerialize["jsonnet_input"] = o.JsonnetInput
|
|
}
|
|
if !IsNil(o.JsonnetMapperUrl) {
|
|
toSerialize["jsonnet_mapper_url"] = o.JsonnetMapperUrl
|
|
}
|
|
if !IsNil(o.JsonnetOutput) {
|
|
toSerialize["jsonnet_output"] = o.JsonnetOutput
|
|
}
|
|
if !IsNil(o.JsonnetStderr) {
|
|
toSerialize["jsonnet_stderr"] = o.JsonnetStderr
|
|
}
|
|
if !IsNil(o.SchemaValidationErrors) {
|
|
toSerialize["schema_validation_errors"] = o.SchemaValidationErrors
|
|
}
|
|
if !IsNil(o.Userinfo) {
|
|
toSerialize["userinfo"] = o.Userinfo
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *LoginFlowTestDebugPayload) UnmarshalJSON(data []byte) (err error) {
|
|
varLoginFlowTestDebugPayload := _LoginFlowTestDebugPayload{}
|
|
|
|
err = json.Unmarshal(data, &varLoginFlowTestDebugPayload)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = LoginFlowTestDebugPayload(varLoginFlowTestDebugPayload)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "error")
|
|
delete(additionalProperties, "id_token_claims")
|
|
delete(additionalProperties, "jsonnet_input")
|
|
delete(additionalProperties, "jsonnet_mapper_url")
|
|
delete(additionalProperties, "jsonnet_output")
|
|
delete(additionalProperties, "jsonnet_stderr")
|
|
delete(additionalProperties, "schema_validation_errors")
|
|
delete(additionalProperties, "userinfo")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableLoginFlowTestDebugPayload struct {
|
|
value *LoginFlowTestDebugPayload
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableLoginFlowTestDebugPayload) Get() *LoginFlowTestDebugPayload {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableLoginFlowTestDebugPayload) Set(val *LoginFlowTestDebugPayload) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableLoginFlowTestDebugPayload) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableLoginFlowTestDebugPayload) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableLoginFlowTestDebugPayload(val *LoginFlowTestDebugPayload) *NullableLoginFlowTestDebugPayload {
|
|
return &NullableLoginFlowTestDebugPayload{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableLoginFlowTestDebugPayload) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableLoginFlowTestDebugPayload) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|