Skip to main content

Simple and opinionated OpenID-Connect relying party and resource server implementation

Project description

Simple OpenID

Simple and opinionated OpenID-Connect relying party and resource server implementation

Documentation Status

Quick Links

Development philosophy

  • Keep the API as simple as possible

    No **kwargs parameters, no function arguments called request_args, http_args or something_else_args

  • Fully typed API

    Python has type hints now, let's use them.

  • Support commonly used OpenID features and flows

    Commonly used flows will be supported but obscure and legacy or experimental mechanisms not so much.

  • Be just an OpenID library

    Tell the user about function requirements clearly but don't try any fancy internal persistence or caching mechanisms that will only fail in different usage scenarios. Instead, abstract the underlying OpenID protocol into usable, clear functions but nothing more.

Framework Integrations

Name Integration Docs Supported Versions
Django Integration Docs v3.2, v4.0, v4.1
Django-Rest-Framework Integration Docs v3.13, v3.14

Supported OpenID Specs

The list of OpenID specifications can be found on the official website.

  • (✔️) Partial OpenID Connect Core 1.0

    Only the following flows and features are implemented:

    • ✔️ Authorization Code Flow
    • ✔️ client_secret_basic client authentication
    • ✔️ none client authentication
    • ✔️ Query String serialization and parsing
    • ✔️ ID Token handling (parsing + validation)
    • ✔️ Using refresh tokens
    • ✔️ Retrieving userinfo
    • ❌ Implicit Flow
    • ❌ Hybrid Flow
    • ❌ Handling third party initiated login
    • ❌ Passing requests as JWTs (neither by value nor by reference)
    • ❌ Self-Issued OpenID Provider
    • client_secret_post client authentication
    • client_secret_jwt client authentication
    • private_key_jwt client authentication
  • (✔️) Partial OpenID Connect Discovery 1.0. Provider Configuration Discovery is implemented, Provider Issuer Discovery is not.

    This means that a known issuer can be introspected for its supported algorithms, endpoint locations and so forth but discovering that issuer in the first hand is not possible.

  • ✔️ Full OAuth 2.0 Multiple Response Type Encoding Practices

    Only the following features are implemented and supported:

    • ✔️ Response modes (fragment based response parsing)
    • ✔️ Multiple-Valued Response Types
      No explicit support, but it is possible to supply one of the multivalued response_type values to an authentication request and then parse multiple responses from the resulting response.
  • ✔️ Full OpenID Connect RP-Initiated Logout 1.0

  • ✔️ Full OpenID Connect Front-Channel Logout 1.0

  • ✔️ Full OpenID Connect Back-Channel Logout 1.0

  • ✔️ Full OAuth 2.0 Token Introspection

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

simple_openid_connect-0.1.3.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

simple_openid_connect-0.1.3-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_openid_connect-0.1.3.tar.gz.

File metadata

File hashes

Hashes for simple_openid_connect-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3f16b0b23d9b5dd310c4a588209a7bf2af07b5a1d54a577376f647ce1dfdbbc2
MD5 9d8661739dd493ad483bd4370687cdd1
BLAKE2b-256 6ea120abee4712a9f66d3f7808225767924f79e92fa22ce87185ea037e5f8fce

See more details on using hashes here.

File details

Details for the file simple_openid_connect-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_openid_connect-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b78ccc0ff6651a83b79d09fae3e2bbf9fd628e0a23f56739347f56d0fe380b4
MD5 d1cdfc436685e708fad9a32ff4b6fcee
BLAKE2b-256 74e46949c24c34cf6f5fccabf21f78a8e422d78ab3a32614c0e7cae92878c416

See more details on using hashes here.

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