Skip to main content

a Python library that provides functions for retrieving tokens from local azure metadata service.

Project description

PyARCrbac PyPI - Downloads PyPI - Version

PyARCrbac is a Python library that provides functions for retrieving tokens from azure arc-enabled servers using the local metadata service. It can be used to obtain access tokens for Azure resources.

Installation

pip3 install pyarcrbac

Usage

Here's an example of how to use PyARCrbac to retrieve an access token:

from pyarcrbac import get_token

token = get_token()
print(token)

Make sure you have the necessary permissions and environment variables set up to access the azure metadata service.

Documentation

The main function in PyARCrbac is get_token(), which retrieves the challenge token from the metadata service. It returns the access token as a JSON object.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Contact

For any questions or inquiries, please open an issue.

Disclaimer

I am not responsible for any damage and/or misuse as a result of using this lib.

Project details


Download files

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

Source Distribution

PyARCrbac-0.0.6.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page