Skip to main content

IAM OIDC

Python PyPI GH-CI Codecov Apache-2.0 Ruff

Overview

The ansys-iam-oidc package provides Python utilities for adding OAuth 2.0 and OpenID Connect (OIDC) authentication to SAF applications. It simplifies the integration of secure identity flows so that developers can protect APIs, validate access tokens, and retrieve user information without implementing the underlying protocol details themselves.

Key capabilities include:

  • Token validation: Verify access-token signatures, expiration, and audience claims against an OIDC provider’s public keys.

  • User information retrieval: Obtain standard OIDC user-profile claims either from the token itself or by querying the provider’s userinfo endpoint.

  • FastAPI integration: Ready-to-use dependency classes for protecting FastAPI routes, including support for HTTP requests and WebSocket connections.

  • Flexible client modes: Support for synchronous and asynchronous workflows through OidcClient and AsyncOidcClient.

  • Standard OIDC flows: Foundation for authorization-code with PKCE, client credentials, device-code, token introspection, token revocation, and token exchange.

By handling discovery, key retrieval, and claim validation internally, the package allows developers to focus on application logic while relying on a consistent and tested authentication layer.

Installation

Ensure you have all the necessary prerequisites. Then, refer to the installation guidelines for detailed instructions on how to install the project in your system.

Documentation

The official documentation of SAF Product Configuration contains the following chapters:

  • Getting started. This section provides a brief overview and instructions on how to get started with the project. It typically includes information on how to install the project, set up any necessary dependencies, and run a basic example or test to ensure everything is functioning correctly.

  • User guide. The user guide section offers detailed documentation and instructions on how to use the project. It provides comprehensive explanations of the project’s features, functionalities, and configuration options. The user guide aims to help users understand the project’s concepts, best practices, and recommended workflows.

  • API reference. The API reference section provides detailed documentation for the project’s application programming interface (API). It includes information about classes, functions, methods, and their parameters, return values, and usage examples. This reference helps developers understand the available API endpoints, their functionalities, and how to interact with them programmatically.

  • Examples. The examples section showcases practical code examples that demonstrate how to use the project in real-world scenarios. It provides sample code snippets or complete scripts that illustrate different use cases or demonstrate specific features of the project. Examples serve as practical references for developers, helping them understand how to apply the project to their own applications.

  • Contribute. This section provides guidelines and instructions on how to contribute to the project. It includes information on how to set up the development environment, run tests, submit pull requests, and follow contribution guidelines.

Troubleshooting

For troubleshooting or reporting issues, open an issue in the project repository.

Follow these steps to report an issue:

  • Go to the project repository.

  • Click on the Issues tab.

  • Click on the New Issue button.

  • Provide a clear and detailed description of the issue you are facing.

  • Include any relevant error messages, code snippets, or screenshots.

Additionally, you can refer to the official documentation for additional resources and troubleshooting guides.

License

This library is licensed under the Apache License 2.0. You can find the full text of the license in the LICENSE file.

Changelog

The changelog section provides a summary of notable changes for each version of SAF IAM OIDC for Python. It helps you keep track of updates, bug fixes, new features, and improvements made to the project over time.

To view the complete changelog, visit the project repository and navigate to the CHANGELOG file. It provides a comprehensive list of changes categorized by version, along with brief descriptions of each change.

Metadata

Release files for ansys-iam-oidc 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansys-iam-oidc 0.9.0
File Size Uploaded Provenance Actions
ansys_iam_oidc-0.9.0.tar.gz 18.0 kB With provenance Details for ansys_iam_oidc-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ansys-iam-oidc 0.9.0
File Interpreter ABI Platform Actions
ansys_iam_oidc-0.9.0-py3-none-any.whl Python 3 none any Details for ansys_iam_oidc-0.9.0-py3-none-any.whl

Total release size: 37.6 kB

Release files / ansys_iam_oidc-0.9.0.tar.gz

Download URL ansys_iam_oidc-0.9.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81ab8cff20517edc8dbc4a5e47b9351d32549481764b89311bc0ceb5860c6e15
BLAKE2b-256 checksum
How to use checksums
f2bf16d2a21f387657757d12533446c6cf644cfad259edbfa8158bb8538eab7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / ansys_iam_oidc-0.9.0-py3-none-any.whl

Download URL ansys_iam_oidc-0.9.0-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7cbff46037db0f60138051b963ddc941c02817a6135e61efc404d8f3963d6161
BLAKE2b-256 checksum
How to use checksums
8735b1555f7ff98c44eb25f30af4cfec2dcb1287c4ae4b071d2803c5f5cdbcc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Security for ansys-iam-oidc 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ansys_iam_oidc-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page