Skip to content

authorization_manger

h0pbeat edited this page Jun 5, 2013 · 1 revision

Module for managing authorizations between the applications and the service.

models

class Authorization(models.Model):
        user = models.ForeignKey(User)
        scope = models.ForeignKey(Scope)
        application = models.ForeignKey(Application)
        payload = models.TextField(null=True, blank=True)
        active = models.BooleanField()
        created_at = models.PositiveIntegerField(null=True)
        revoked_at = models.PositiveIntegerField(null=True)

Clone this wiki locally