Created
June 29, 2023 08:24
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client_id": "{{ client_id }}", | |
"client_secret": "{{ client_secret }}", | |
"directory_id": "{{ directory_id }}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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