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
#!/bin/bash | |
# Copyright 2022 Hitachi Vantara. All rights reserved. | |
# Author: Steve Maring <[email protected]> | |
# | |
# Description: Given an Azure Directory app's tenant id, client id, and a pfx file, this provides | |
# a mechanism to obtain a temporary access token via command line. The access token may be | |
# used to do things like send email via the Graph API. | |
# | |
# System Requirements: openssl, sed, awk, curl, jq |