Create migrations. Improve docs.
This commit is contained in:
parent
9f9df355a3
commit
a0c7b3c0c4
|
@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Choose type of client on creation.
|
- Choose type of client on creation.
|
||||||
- Implement Proof Key for Code Exchange by OAuth Public Clients.
|
- Implement Proof Key for Code Exchange by OAuth Public Clients.
|
||||||
- Support for prompt parameter.
|
- Support for prompt parameter.
|
||||||
|
- Support for different client JWT tokens algorithm.
|
||||||
|
|
||||||
##### Fixed
|
##### Fixed
|
||||||
- Not auto-approve requests for non-confidential clients (publics).
|
- Not auto-approve requests for non-confidential clients (publics).
|
||||||
|
|
|
@ -22,3 +22,13 @@ If you have a Django project properly configured with the package. Then just run
|
||||||
$ python manage.py test --settings oidc_provider.tests.app.settings oidc_provider
|
$ python manage.py test --settings oidc_provider.tests.app.settings oidc_provider
|
||||||
|
|
||||||
Also tests run on every commit to the project, we use `travis <https://travis-ci.org/juanifioren/django-oidc-provider/>`_ for this.
|
Also tests run on every commit to the project, we use `travis <https://travis-ci.org/juanifioren/django-oidc-provider/>`_ for this.
|
||||||
|
|
||||||
|
Improve Documentation
|
||||||
|
=====================
|
||||||
|
|
||||||
|
We use `Sphinx <http://www.sphinx-doc.org/>`_ for generate this documentation. I you want to add or modify something just:
|
||||||
|
|
||||||
|
* Install Sphinx ``pip install sphinx`` and this theme ``pip install sphinx-rtd-theme``.
|
||||||
|
* Move inside the docs folder. ``cd docs/``
|
||||||
|
* Generate the HTML. ``make html``
|
||||||
|
* Open ``docs/_build/html/index.html`` on a browser.
|
||||||
|
|
20
oidc_provider/migrations/0014_client_jwt_alg.py
Normal file
20
oidc_provider/migrations/0014_client_jwt_alg.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9 on 2016-04-25 18:02
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('oidc_provider', '0013_auto_20160407_1912'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='client',
|
||||||
|
name='jwt_alg',
|
||||||
|
field=models.CharField(choices=[(b'HS256', b'HS256'), (b'RS256', b'RS256')], default=b'RS256', max_length=10, verbose_name='JWT Algorithm'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -16,7 +16,7 @@ from oidc_provider.lib.endpoints.token import *
|
||||||
from oidc_provider.lib.errors import *
|
from oidc_provider.lib.errors import *
|
||||||
from oidc_provider.lib.utils.common import redirect, get_issuer
|
from oidc_provider.lib.utils.common import redirect, get_issuer
|
||||||
from oidc_provider.lib.utils.oauth2 import protected_resource_view
|
from oidc_provider.lib.utils.oauth2 import protected_resource_view
|
||||||
from oidc_provider.models import Client, RSAKey
|
from oidc_provider.models import RESPONSE_TYPE_CHOICES, RSAKey
|
||||||
from oidc_provider import settings
|
from oidc_provider import settings
|
||||||
|
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ class ProviderInfoView(View):
|
||||||
dic['userinfo_endpoint'] = SITE_URL + reverse('oidc_provider:userinfo')
|
dic['userinfo_endpoint'] = SITE_URL + reverse('oidc_provider:userinfo')
|
||||||
dic['end_session_endpoint'] = SITE_URL + reverse('oidc_provider:logout')
|
dic['end_session_endpoint'] = SITE_URL + reverse('oidc_provider:logout')
|
||||||
|
|
||||||
types_supported = [x[0] for x in Client.RESPONSE_TYPE_CHOICES]
|
types_supported = [x[0] for x in RESPONSE_TYPE_CHOICES]
|
||||||
dic['response_types_supported'] = types_supported
|
dic['response_types_supported'] = types_supported
|
||||||
|
|
||||||
dic['jwks_uri'] = SITE_URL + reverse('oidc_provider:jwks')
|
dic['jwks_uri'] = SITE_URL + reverse('oidc_provider:jwks')
|
||||||
|
|
Loading…
Reference in a new issue