forked from cloudfoundry/go-uaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfa_provider.go
27 lines (23 loc) · 1015 Bytes
/
mfa_provider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package uaa
// MFAProvidersEndpoint is the path to the MFA providers resource.
const MFAProvidersEndpoint string = "/mfa-providers"
// MFAProviderConfig is configuration for an MFA provider
type MFAProviderConfig struct {
Issuer string `json:"issuer,omitempty"`
ProviderDescription string `json:"providerDescription,omitempty"`
}
// MFAProvider is a UAA MFA provider
// http://docs.cloudfoundry.org/api/uaa/version/4.19.0/index.html#get-2
type MFAProvider struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
IdentityZoneID string `json:"identityZoneId,omitempty"`
Config MFAProviderConfig `json:"config"`
Type string `json:"type"`
Created int `json:"created,omitempty"`
LastModified int `json:"last_modified,omitempty"`
}
// Identifier returns the field used to uniquely identify a MFAProvider.
func (m MFAProvider) Identifier() string {
return m.ID
}