1 from django.db import models
3 class OpenIdNonce(models.Model):
4 server_url = models.URLField()
5 timestamp = models.IntegerField()
6 salt = models.CharField( max_length=50 )
9 return "Nonce: %s" % self.nonce
14 class OpenIdAssociation(models.Model):
15 server_url = models.TextField(max_length=2047)
16 handle = models.CharField(max_length=255)
17 secret = models.TextField(max_length=255) # Stored base64 encoded
18 issued = models.IntegerField()
19 lifetime = models.IntegerField()
20 assoc_type = models.TextField(max_length=64)
22 def __unicode__(self):
23 return "Association: %s, %s" % (self.server_url, self.handle)