django-oidc-provider
latest
  • Installation
  • Relying Parties
  • Server Keys
  • Templates
  • Scopes and Claims
  • User Consent
    • Properties
  • OAuth2 Server
  • Access Tokens
  • Session Management
  • Token Introspection
  • Settings
  • Signals
  • Examples
  • Contribute
  • Changelog
django-oidc-provider
  • »
  • User Consent
  • Edit on GitHub

User Consent

The package store some information after the user grant access to some client. For example, you can use the UserConsent model to list applications that the user have authorized access. Like Google does here.

>>> from oidc_provider.models import UserConsent
>>> UserConsent.objects.filter(user__email='some@email.com')
[<UserConsent: Example Client - some@email.com>]

Note: the UserConsent model is not included in the admin.

Properties

  • user: Django user object.

  • client: Relying Party object.

  • expires_at: Expiration date of the consent.

  • scope: Scopes authorized.

  • date_given: Date of the authorization.

Previous Next

© Copyright 2016, Juan Ignacio Fiorentino. Revision 276bf6e6.

Built with Sphinx using a theme provided by Read the Docs.