mirror of
https://github.com/openziti/ziti.git
synced 2026-09-22 02:24:00 +00:00
add typeId to authQuery
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -7220,6 +7220,8 @@ definitions:
|
||||
required:
|
||||
- provider
|
||||
properties:
|
||||
typeId:
|
||||
type: string
|
||||
provider:
|
||||
$ref: '#/definitions/mfaProviders'
|
||||
httpMethod:
|
||||
|
||||
Reference in New Issue
Block a user