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