Skip to main content

AddAzureEntryIdIdentityProvider

Adds a new identity provider for Microsoft Azure Entra ID.

Examples​

Basic usage; the client secret is piped in on standard input:

octo-cli -c AddAzureEntryIdIdentityProvider `
-n "Azure AD" `
-t "your-tenant-id" `
-cid "your-client-id" `
-css `
-e "true" `
-asr "true" `
-dgid "<default-group-rtid>"

Options​

ShortLongRequiredDescription
-n--nameyesName of identity provider, must be unique
-t--tenantIdyesTenant ID of Azure Entry ID
-e--enabledyesTrue if identity provider should be enabled, otherwise false
-cid--clientIdyesServiceClient ID, provided by provider
-cs--clientSecretnoDeprecated: client secret, provided by the provider. A value on the command line ends up in the shell history and the process list.
Omit it to be prompted (hidden input), or use --client-secret-stdin or the environment variable OCTO_CLI_IDP_CLIENT_SECRET.
-css--client-secret-stdinnoRead the client secret from standard input (one value; a trailing line break is removed)
-asr--allowSelfRegistrationnoAllow self registration (default: true)
-dgid--defaultGroupRtIdnoDefault group RtId for new users

Notes​

The client secret is read from a hidden prompt, from standard input (--client-secret-stdin) or from the environment variable OCTO_CLI_IDP_CLIENT_SECRET, so it does not end up in the shell history or the process list. -cs still works in this release but logs a deprecation warning and will be removed.