| 1 | package authmodel |
| 2 | |
| 3 | type AuthType string |
| 4 | |
| 5 | const ( |
| 6 | AuthTypeCertificate AuthType = "https://relic.sas.com/auth/certificate" |
| 7 | AuthTypeBearerToken AuthType = "https://relic.sas.com/auth/bearer-token" |
| 8 | AuthTypeAzureAD AuthType = "https://relic.sas.com/auth/azure-ad" |
| 9 | ) |
| 10 | |
| 11 | type Metadata struct { |
| 12 | Hosts []string `json:"hosts"` |
| 13 | Auth []AuthMetadata `json:"auth"` |
| 14 | } |
| 15 | |
| 16 | type AuthMetadata struct { |
| 17 | Type AuthType `json:"type"` |
| 18 | // azure AD |
| 19 | Authority string `json:"authority,omitempty"` |
| 20 | ClientID string `json:"client_id,omitempty"` |
| 21 | Scopes []string `json:"scopes,omitempty"` |
| 22 | } |