Provides a dropdown for selecting Microsoft cloud environment and resolves host URLs.
// Source: https://github.com/activepieces/activepieces | License: MIT | Copyright 2020-2024 Activepieces Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { OAuth2PropertyValue, Property } from '@activepieces/pieces-framework';
const COMMERCIAL_LOGIN_HOST = 'login.microsoftonline.com';
const GOV_LOGIN_HOST = 'login.microsoftonline.us';
export const microsoftCloudProperty = Property.StaticDropdown({
displayName: 'Cloud Environment',
description: 'Select your Microsoft cloud environment.',
required: true,
defaultValue: COMMERCIAL_LOGIN_HOST,
options: {
disabled: false,
options: [
{ label: 'Commercial (Global)', value: COMMERCIAL_LOGIN_HOST },
{ label: 'US Government (GCC High)', value: GOV_LOGIN_HOST },
],
},
});
function reso
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key