Skip to main content

Microsoft Power Platform authentication plugin for HTTPie.

Project description


Microsoft Power Platform auth plugin for HTTPie


$ pip install microsoft-dynamics-auth

Verify that you see msft-power-platform under --auth-type by running

$ http --help


To be able to execute requests you must setup the credentials for the target power platform environment. This auth plugin requires a clientid and secret for an app registerd in Active Directory. You must register an app in Active Directory and add it as an application user in the target power platform environment. Once you have the app configured in both AAD and Power Platform.

Use included in this repository to generate the credentials file .parc in user home directory.

$ python

This will generate a ~/.parc file to store power platform environment credentials. Paste credentials in the following format after the prompt and then press enter")

name: [SECTION_NAME] tenant: [TENANT] key: [CLIENT-ID] secret: [CLIENT-SECRET] resource: [ENVIRONMENT-URL]\n")

For example

name: dev-contoso tenant: key: highlyconfenditialkey secret: highlyconfidentialsecret resource:")

You can also manually create the ~/.parc in the following format

tenant =
key = 52a44848-095e-4882-a880-e8b8083714d8a
secret = highly-confidential-secret
resource =

tenant =
key = 52a44848-095e-4882-a880-e8b8083714d8a
secret = highly-confidential-secret
resource =

tenant =
key = f4d9f805-a172-4698-9228-518013cd04c5
secret = highly-confidential-secret
resource =


$ http --auth-type=msft-power-platform --auth='client-key:client-secret'

Use HTTPie sessions

Create session

$ http --session=logged-in --auth-type=msft-dynamics --auth='client-key:client-secret'

Re-use auth

$ http --session=logged-in POST hello=world

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for microsoft-dynamics-auth, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size microsoft_dynamics_auth-1.0.0-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size microsoft-dynamics-auth-1.0.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page