feat(target): Decode based on credential type

This commit is contained in:
Louis Ruch committed 2022-01-10 09:57:27 -08:00
1 parent 591ec476e7
commit a90f1f4eb1
9 files changed
+736 -298

No files matched your search

+1
View File
@@ -7,4 +7,5 @@ type CredentialSource struct {
Description string `json:"description,omitempty"`
CredentialStoreId string `json:"credential_store_id,omitempty"`
Type string `json:"type,omitempty"`
CredentialType string `json:"credential_type,omitempty"`
}
+4 -3
View File
@@ -2,7 +2,8 @@
package targets
type SessionCredential struct {
CredentialSource *CredentialSource `json:"credential_source,omitempty"`
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
Secret *SessionSecret `json:"secret,omitempty"`
CredentialSource *CredentialSource `json:"credential_source,omitempty"`
CredentialLibrary *CredentialLibrary `json:"credential_library,omitempty"`
Secret *SessionSecret `json:"secret,omitempty"`
Credential map[string]interface{} `json:"credential,omitempty"`
}