feat: resolve auth profiles through secret ids
This commit is contained in:
@@ -183,6 +183,12 @@ impl From<RegistryError> for ApiError {
|
||||
RegistryError::SecretNameAlreadyExists { workspace_id, name } => Self::conflict(
|
||||
format!("secret with name {name} already exists in workspace {workspace_id}"),
|
||||
),
|
||||
RegistryError::SecretReferencedByAuthProfile {
|
||||
secret_id,
|
||||
auth_profile_id,
|
||||
} => Self::conflict(format!(
|
||||
"secret {secret_id} is referenced by auth profile {auth_profile_id}"
|
||||
)),
|
||||
RegistryError::InvalidStreamSessionTransition { .. }
|
||||
| RegistryError::InvalidAsyncJobTransition { .. } => Self::conflict(value.to_string()),
|
||||
RegistryError::UserEmailAlreadyExists { email } => {
|
||||
|
||||
Reference in New Issue
Block a user