~spanzy98/canonical-identity-provider:master

Last commit made on 2022-06-09
Get this branch:
git clone -b master https://git.launchpad.net/~spanzy98/canonical-identity-provider
Only Spanzaro can upload to this branch. If you are Spanzaro please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~spanzy98/canonical-identity-provider

Recent commits

3029381... by John Paraskevopoulos

Fix Encoding error in suspended account's forgot password

Merged from https://code.launchpad.net/~quantifics/canonical-identity-provider/+git/canonical-identity-provider/+merge/424271

8800c73... by John Paraskevopoulos

Fix Encoding error in suspended account's forgot password

- Fixes issue that lead to crashing the application when a suspended
user with a unicode display name tried to use the reset password
functionality
- Adds a utf-8 displayname in the api v20 tests to catch such issues in
the future

4f57ab2... by John Paraskevopoulos

Final changes for python 2 and 3 support

Merged from https://code.launchpad.net/~quantifics/canonical-identity-provider/+git/canonical-identity-provider/+merge/422958

1408bf6... by Daniel Manrique

"Bad bot" honeypot response page: provide a better explanation.

In practice humans who have this problem end up filing Launchpad bugs
where we give them this exact response, so the presence of the honeypot
field is not really secret in any way. There's probably no downside to
explaining this right in the page. Humans who get misidentified will see
this and have a chance to get themselves out of trouble.

Merged from https://code.launchpad.net/~roadmr/canonical-identity-provider/+git/canonical-identity-provider/+merge/423877

be7d7f0... by Daniel Manrique

"Bad bot" honeypot response page: provide a better explanation.

In practice humans who have this problem end up filing Launchpad bugs
where we give them this exact response, so the presence of the honeypot
field is not really secret in any way. There's probably no downside to
explaining this right in the page. Humans who get misidentified will see
this and have a chance to get themselves out of trouble.

8ab65ca... by John Paraskevopoulos

Switch to env3 when using the PY3 env var

- Many tasks depend on using ENV variable so we replace it to point to
env3 so that we can have two distinct python virtualenvs if we need to
test both python 2 and python 3

8065a19... by John Paraskevopoulos

Refactorings/Fixes based on MP comments

44af49e... by John Paraskevopoulos

Rework utf8 support for models

Merged from https://code.launchpad.net/~quantifics/canonical-identity-provider/+git/canonical-identity-provider/+merge/423624

47237d2... by John Paraskevopoulos

Rework utf8 support for models

- Uses @python_2_unicode_compatible and django's `force_text` for models
that define `__unicode__` function and/or need utf8 encoding/decoding

5d7328a... by John Paraskevopoulos

Fix Account utf-8 GDPR report issue

- Uses django's `force_text` helper function to handle encoding and
decoding for utf-8 since that includes version checking as well
- Uses python_2_unicode_compatible to remove the `__unicode__` function
since this also applies `encode('utf-8')` in the `__str__` function
which is needed in the admin views (this is a bypass for python3)