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