add typeId to authQuery

This commit is contained in:
Andrew Martinez
2021-01-26 15:12:22 -05:00
parent ab9e19f485
commit 252e105f3c
4 changed files with 12 additions and 0 deletions
@@ -76,6 +76,7 @@ func MapApiSessionToRestModel(apiSession *model.ApiSession) (*rest_model.APISess
func newAuthCheckZitiMfa() *rest_model.AuthQueryDetail {
return &rest_model.AuthQueryDetail{
TypeID: "MFA",
Format: rest_model.MfaFormatsAlphaNumeric,
HTTPMethod: http.MethodPost,
HTTPURL: "./authenticate/mfa",
+3
View File
@@ -58,6 +58,9 @@ type AuthQueryDetail struct {
// provider
// Required: true
Provider MfaProviders `json:"provider"`
// type Id
TypeID string `json:"typeId,omitempty"`
}
// Validate validates this auth query detail
+6
View File
@@ -6261,6 +6261,9 @@ func init() {
},
"provider": {
"$ref": "#/definitions/mfaProviders"
},
"typeId": {
"type": "string"
}
}
},
@@ -25660,6 +25663,9 @@ func init() {
},
"provider": {
"$ref": "#/definitions/mfaProviders"
},
"typeId": {
"type": "string"
}
}
},
+2
View File
@@ -7220,6 +7220,8 @@ definitions:
required:
- provider
properties:
typeId:
type: string
provider:
$ref: '#/definitions/mfaProviders'
httpMethod: