Add access review data layer and migrations
Add coredata entities for access review campaigns, access sources, access entries with decision history, campaign source fetches, and scope systems. Include migrations, entity type registrations, enum types for flags, decisions, MFA status, and auth methods. Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -23,11 +23,13 @@ type ConnectorProtocol string
|
||||
|
||||
const (
|
||||
ConnectorProtocolOAuth2 ConnectorProtocol = "OAUTH2"
|
||||
ConnectorProtocolAPIKey ConnectorProtocol = "API_KEY"
|
||||
)
|
||||
|
||||
func ConnectorProtocols() []ConnectorProtocol {
|
||||
return []ConnectorProtocol{
|
||||
ConnectorProtocolOAuth2,
|
||||
ConnectorProtocolAPIKey,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +51,8 @@ func (cp *ConnectorProtocol) Scan(value any) error {
|
||||
switch s {
|
||||
case "OAUTH2":
|
||||
*cp = ConnectorProtocolOAuth2
|
||||
case "API_KEY":
|
||||
*cp = ConnectorProtocolAPIKey
|
||||
default:
|
||||
return fmt.Errorf("invalid ConnectorProtocol value: %q", s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user