Skip to content

Commit 5c9d080

Browse files
committed
merged in changes from upstream.
2 parents ef43d9a + 977c80f commit 5c9d080

39 files changed

+601
-219
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: juanifioren

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Django Tests CI
2+
3+
on:
4+
push:
5+
branches: ["master", "develop"]
6+
pull_request:
7+
branches: ["develop"]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: |
17+
3.8
18+
3.9
19+
3.10
20+
3.11
21+
- name: Install tox
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install tox
25+
- name: Run tox
26+
run: tox

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ docs/_build/
1414
.python-version
1515
.vscode
1616
.pytest_cache/
17+
.coverage*

.readthedocs.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.10"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
# Optionally build your docs in additional formats such as PDF and ePub
18+
formats:
19+
- pdf
20+
21+
# Python requirements required to build your documentation
22+
python:
23+
install:
24+
- requirements: docs/requirements.txt

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Django OpenID Connect Provider
22

33
[![Python Versions](https://img.shields.io/pypi/pyversions/django-oidc-provider.svg)](https://pypi.python.org/pypi/django-oidc-provider)
4+
[![Django Versions](https://img.shields.io/badge/Django-3.2%20%7C%204.2-green)](https://pypi.python.org/pypi/django-oidc-provider)
45
[![PyPI Versions](https://img.shields.io/pypi/v/django-oidc-provider.svg)](https://pypi.python.org/pypi/django-oidc-provider)
56
[![Documentation Status](https://readthedocs.org/projects/django-oidc-provider/badge/?version=master)](http://django-oidc-provider.readthedocs.io/)
6-
[![Travis](https://travis-ci.org/juanifioren/django-oidc-provider.svg?branch=master)](https://travis-ci.org/juanifioren/django-oidc-provider)
77

88
## About OpenID
99

@@ -13,8 +13,8 @@ OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol, whic
1313

1414
`django-oidc-provider` can help you providing out of the box all the endpoints, data and logic needed to add OpenID Connect (and OAuth2) capabilities to your Django projects.
1515

16-
Support for Python 3 and 2. Also latest versions of django.
16+
Support for Python 3 and latest versions of django.
1717

1818
[Read documentation for more info.](http://django-oidc-provider.readthedocs.org/)
1919

20-
[Do you want to contribute? Please read this.](http://django-oidc-provider.readthedocs.io/en/latest/sections/contribute.html)
20+
[Do you want to contribute? Please read this.](http://django-oidc-provider.readthedocs.io/en/master/sections/contribute.html)

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@
4545

4646
# General information about the project.
4747
project = u'django-oidc-provider'
48-
copyright = u'2016, Juan Ignacio Fiorentino'
48+
copyright = u'2023, Juan Ignacio Fiorentino'
4949
author = u'Juan Ignacio Fiorentino'
5050

5151
# The version info for the project you're documenting, acts as replacement for
5252
# |version| and |release|, also used in various other places throughout the
5353
# built documents.
5454
#
5555
# The short X.Y version.
56-
version = u'0.5'
56+
version = u'0.8'
5757
# The full version, including alpha/beta/rc tags.
58-
release = u'0.5.x'
58+
release = u'0.8.0'
5959

6060
# The language for content autogenerated by Sphinx. Refer to documentation
6161
# for a list of supported languages.

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
sphinx_rtd_theme

docs/sections/changelog.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@ All notable changes to this project will be documented in this file.
88
Unreleased
99
==========
1010

11+
12+
0.8.2
13+
=====
14+
15+
*2023-12-15*
16+
17+
* Added: Discovery endpoint response caching. Introducing OIDC_DISCOVERY_CACHE_ENABLE.
18+
* Fixed: ResponseType data migration.
19+
* Fixed: correctly verify PKCE secret in token endpoint.
20+
21+
0.8.1
22+
=====
23+
24+
*2023-10-22*
25+
26+
* Changed: create_token and create_code are now methods on base classes to enable customization.
27+
* Changed: extract "is consent skip allowed" decision from the view to the endpoint.
28+
* Fixed: race condition in authorization code, parallel requests may reuse same token.
29+
30+
0.8.0
31+
=====
32+
33+
*2023-05-05*
34+
35+
* Changed: now supporting latest versions of Django.
36+
* Changed: drop support for Python 2 and Django lower than 3.2.
37+
* Added: scope on token and introspection endpoints.
38+
* Changed: Use static instead of deprecated staticfiles template tag.
39+
* Fixed: example in docs for translatable scopes (ugettext).
40+
1141
0.7.0
1242
=====
1343

docs/sections/contribute.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ We love contributions, so please feel free to fix bugs, improve things, provide
77

88
* Create an issue and explain your feature/bugfix.
99
* Wait collaborators comments.
10-
* Fork the project and create new branch from `develop`.
10+
* Fork the project and create new branch from ``develop``.
1111
* Make your feature addition or bug fix.
1212
* Add tests and documentation if needed.
13-
* Create pull request for the issue to the `develop` branch.
13+
* Create pull request for the issue to the ``develop`` branch.
1414
* Wait collaborators reviews.
1515

1616
Running Tests
@@ -21,18 +21,18 @@ Use `tox <https://pypi.python.org/pypi/tox>`_ for running tests in each of the e
2121
# Run all tests.
2222
$ tox
2323

24-
# Run with Python 3.5 and Django 2.0.
25-
$ tox -e py35-django20
24+
# Run with Python 3.11 and Django 4.2.
25+
$ tox -e py311-django42
2626

2727
# Run single test file on specific environment.
28-
$ tox -e py35-django20 tests/cases/test_authorize_endpoint.py
28+
$ tox -e py311-django42 -- tests/cases/test_authorize_endpoint.py
2929

30-
We also use `travis <https://travis-ci.org/juanifioren/django-oidc-provider/>`_ to automatically test every commit to the project.
30+
We use `Github Actions <https://github.com/juanifioren/django-oidc-provider/actions>`_ to automatically test every commit to the project.
3131

3232
Improve Documentation
3333
=====================
3434

35-
We use `Sphinx <http://www.sphinx-doc.org/>`_ for generate this documentation. I you want to add or modify something just:
35+
We use `Sphinx <http://www.sphinx-doc.org/>`_ to generate this documentation. If you want to add or modify something just:
3636

3737
* Install Sphinx (``pip install sphinx``) and the auto-build tool (``pip install sphinx-autobuild``).
3838
* Move inside the docs folder. ``cd docs/``

0 commit comments

Comments
 (0)