Skip to content

Instantly share code, notes, and snippets.

@deangrant
Created June 29, 2023 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deangrant/7fd4572e85c7f45310ad351920ae6729 to your computer and use it in GitHub Desktop.
Save deangrant/7fd4572e85c7f45310ad351920ae6729 to your computer and use it in GitHub Desktop.
Generates base64-encoded JSON string for Pomerium IDP_SERVICE_ACCOUNT for Azure Active Directory identity provider
# The below command used the Base64 encoding utility to encode the JSON document
# and return the encoded output required for the IDP_SERVICE_ACCOUNT value.
#
# The JSON document requires the following key/value pairs available from
# the app registration
#
# client_id: The unique identifier of the Application (client) ID.
# client_secret: The client secret value generated in certificates & secrets.
# directory_id: The unique identifier of the Directory (tenant) ID.
base64 -w 0 idp_service-account.json
{
"client_id": "{{ client_id }}",
"client_secret": "{{ client_secret }}",
"directory_id": "{{ directory_id }}"
}
# https://www.pomerium.com/docs/identity-providers/azure
idp_service_account = {{ base_64_encoded_string }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment