Azure ClientSecretCredential support (#3456)
Co-authored-by: Suchintan <suchintan@users.noreply.github.com> Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
@@ -194,6 +194,30 @@ export type CreateOnePasswordTokenResponse = {
|
||||
token: OnePasswordTokenApiResponse;
|
||||
};
|
||||
|
||||
export interface AzureClientSecretCredential {
|
||||
tenant_id: string;
|
||||
client_id: string;
|
||||
client_secret: string;
|
||||
}
|
||||
|
||||
export interface AzureOrganizationAuthToken {
|
||||
id: string;
|
||||
organization_id: string;
|
||||
credential: AzureClientSecretCredential;
|
||||
created_at: string;
|
||||
modified_at: string;
|
||||
token_type: string;
|
||||
valid: boolean;
|
||||
}
|
||||
|
||||
export interface CreateAzureClientSecretCredentialRequest {
|
||||
credential: AzureClientSecretCredential;
|
||||
}
|
||||
|
||||
export interface AzureClientSecretCredentialResponse {
|
||||
token: AzureOrganizationAuthToken;
|
||||
}
|
||||
|
||||
// TODO complete this
|
||||
export const ActionTypes = {
|
||||
InputText: "input_text",
|
||||
|
||||
Reference in New Issue
Block a user