pub struct OauthClientApproval {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub oauth_client_id: Option<String>,
pub requester_id: Option<String>,
pub responder_id: Option<String>,
pub status: Option<OAuthClientApprovalStatus>,
pub scopes: Option<Vec<String>>,
pub request_reason: Option<String>,
pub deny_reason: Option<String>,
pub newly_requested_scopes: Option<Vec<String>>,
}Expand description
A request to install an OAuth client application on a workspace, along with the admin’s approval or denial response. When a user attempts to install an OAuth application that requires admin approval, an approval record is created. A workspace admin can then approve or deny the request, optionally providing a reason. The record also tracks any newly requested scopes that were added after the initial approval.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
oauth_client_id: Option<String>The identifier of the OAuth client application being requested for installation in this workspace.
requester_id: Option<String>The identifier of the user who initiated the request to install the OAuth client application.
responder_id: Option<String>The identifier of the workspace admin who approved or denied the installation request. Null if the request has not yet been responded to.
status: Option<OAuthClientApprovalStatus>The current status of the approval request: requested (pending admin review), approved, or denied.
scopes: Option<Vec<String>>The OAuth scopes that the application has been approved to use within this workspace (e.g., ‘read’, ‘write’, ‘issues:create’).
request_reason: Option<String>An optional message from the requester explaining why they want to install the OAuth application.
deny_reason: Option<String>An optional explanation from the admin for why the installation request was denied.
newly_requested_scopes: Option<Vec<String>>Additional OAuth scopes requested after the initial approval. These scopes are not yet approved and require a separate admin decision. Null if no additional scopes have been requested. These scopes will never overlap with the already-approved scopes.
Trait Implementations§
Source§impl Clone for OauthClientApproval
impl Clone for OauthClientApproval
Source§fn clone(&self) -> OauthClientApproval
fn clone(&self) -> OauthClientApproval
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more