Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Conversation

@ryanluker
Copy link

@ryanluker ryanluker commented Mar 30, 2023

@mackosx @gregmallan

Merge method

Fetched the upstream versions and then used a new branch 1.5.0-grn with the default git merge method.
git merge 1.5.0

Current CI Failures

None! ✅

Work

  • Fix merge conflicts (see TODO sc-77176)
  • Fix readme to get project building locally
  • Add database setup instructions to readme
  • Fix failures in 3.9 build
  • Add new migration to add old 1.4.3-grn functionality
  • Rework migrations to not run
  • Add double write for old + new OIDC functionality.
  • Remove custom iat

Important Commits

3622206
e4d5e1b
32f0051
dc0dd81
a8b43ef
af476e9
f87d071
3897436
2e734e5

n2ygk and others added 30 commits October 6, 2020 15:07
url() is deprecated in Django 3.1. Path is available in all supported versions of Django.
* add tests for issue of PKCE authorization code GET request
* pass PKCE fields to AuthorizationView form

Pass code_challenge and code_challenge_method from query string to AuthorizationView form in get().
Without this, it was impossible to use authorization code grant flow with GET, because code_challenge and code_challenge_method data were never passed to form, so they weren't in form.cleaned_data, which causes creating Grant with always empty code_challenge and code_challenge_method.

This issue was quite hard bug to discover because there are already few tests for authorization code flow pkce, however, they weren't checking form rendering in GET request, but only response.status_code, I have added asserts for these 2 values, please look at the changes in test_public_pkce_plain_authorize_get and test_public_pkce_S256_authorize_get tests in test_authorization_code.py.
* Added Python 3.9 to test matrix for djangomaster

* Added Python3.9 support for Django 2.2 and 3.0
added Support for 3.1
Removed support for 2.1
* Add black, isort and pre-commit hooks

* Add black configuration
* Run black as part of flake8 testenv in tox
* Add editorconfig to ensure indent style in tox.ini/setup.cfg
* Add pre-commit hooks to check flake8, black, isort and common errors
* Update isort configuration to be black-compatible
* Update contributing documentation
* Add myself to AUTHORS
* Skip migrations in black/isort/pre-commit

* Run black over the source tree

This is the result of running `black .` over the repository.

By-hand improvements of the blackened code will be in follow up commits,
to make it easier to reapply this commit to future updates, if
necessary - IE to remove this commit and re-run black over a fresh tree,
rather than trying to merge new changes in to this commit.

* Hand tweak some of black's autoformatting

Some minor hand tweaks:

    oauth2_provider/contrib/rest_framework/authentication.py
    oauth2_provider/oauth2_validators.py
        Construct OrderedDict in a clearer, still black compliant way
        (one line per dict entry)

    tests/test_token_revocation.py
        Remove empty method docstrings

* Apply isort over codebase

Co-authored-by: Tom Evans <[email protected]>
…jango-oauth#903)

* Disable 255 chars length limit for redirect uri (django-oauth#902)

RFC 7230 recommends to design system to be capable to work with URI at least
to 8000 chars long. This commit allows handle redirect_uri that is over 255
chars.
* WIP - GH actions

* drop pypy

* Fix tox.ini

* Try to fix coverage

* Add 3.5 (for django 2.2) to GH actions

* Minor doc updates.

* Rename some tox config.

* Minor typo.

* Add release workflow.

* Remove tarball from download URL.

* Ignore errors on Django masters.

* Minor fix.

Co-authored-by: Jannis Leidel <[email protected]>
* removed limit on select for update (due to an Oracle 12c limitation)

* added my name to authors

* Use filter and wrap in a list

* documentation
Add a new tox target, `livedocs`, that uses sphinx-autobuild to monitor
the docs and auto rebuild the HTML docs when they change.

It also starts a webserver on 127.0.0.1:8000 using livereload to serve
the docs, which will automatically reload the pages in your browser as
they are changed.

Add docs on updating the docs.

Add sphinx-rtd-theme so that the docs generated in development match the
style that they are displayed in on readthedocs.

Co-authored-by: Alan Crosswell <[email protected]>
* document how to contribute translations
Single quotes are italics in reST and I see no need for them in this particular heading.

Co-authored-by: Alan Crosswell <[email protected]>
Run lint in Github Actions to avoid PRs being merged that have
accidentally included linting violations.

Fix a file that has a linting violation.
* Fix wrong import

fix wrong import from `url` (unused in example) to `path`

* Update tutorial_02.rst

Co-authored-by: Rust Saiargaliev <[email protected]>
* Fix weird grammar in messages on authorize screen

The existing message to users was 'Application requires following permissions' which sounds
like bad english to me. I've changed them to 'Application requires the following permissions'.

* Add myself to authors

Co-authored-by: Alan Crosswell <[email protected]>
* GHA: run CI on PRs and pushes to master only

Previously, every pull request was running actions twice, since two signas were fired - push commit in the PR and new PR itself.

* Update CHANGELOG

* Review comments

Co-authored-by: Alan Crosswell <[email protected]>
* Drop retired Python 3.5

Python 3.5 did reach end-of-life in September 2020:
https://www.python.org/downloads/release/python-3510/

We can safely remove it from CI to reduce test running time.

* Add my name to AUTHORS

Co-authored-by: Alan Crosswell <[email protected]>
@ryanluker
Copy link
Author

@mackosx I say we give up on Add database setup instructions to readme as that is something already done in later upstream versions.

@mackosx
Copy link
Collaborator

mackosx commented Mar 31, 2023

@mackosx I say we give up on Add database setup instructions to readme as that is something already done in later upstream versions.

Yeah sounds good

@ryanluker ryanluker merged commit de7d223 into master Mar 31, 2023
@ryanluker ryanluker deleted the 1.5.0-grn branch March 31, 2023 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.