forked from 00dani/lemoncurry
On approving an IndieAuth request, actually generate an auth code and redirect
This commit is contained in:
parent
221d548e4a
commit
8b4a14ffa3
4 changed files with 68 additions and 3 deletions
28
lemonauth/migrations/0001_initial.py
Normal file
28
lemonauth/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.6 on 2017-10-29 05:05
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='IndieAuthCode',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('code', models.CharField(max_length=64, unique=True)),
|
||||
('me', models.CharField(max_length=255)),
|
||||
('client_id', models.CharField(max_length=255)),
|
||||
('redirect_uri', models.CharField(max_length=255)),
|
||||
('response_type', models.CharField(choices=[('id', 'id'), ('code', 'code')], default='id', max_length=4)),
|
||||
('scope', models.CharField(blank=True, max_length=200)),
|
||||
],
|
||||
),
|
||||
]
|
0
lemonauth/migrations/__init__.py
Normal file
0
lemonauth/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue