Skip to content

Commit

Permalink
chore(socialaccount): Drop Persona support
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jun 30, 2023
1 parent 069af44 commit a38f859
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 205 deletions.
19 changes: 12 additions & 7 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
0.55.0 (unreleased)
*******************

Note worthy changes
-------------------

- Dropped support for Django 2.x.

- Officially support Django 4.2.

- New provider: Miro.


Security notice
---------------

Expand All @@ -22,13 +32,8 @@ Backwards incompatible changes

- The method ``allauth.utils.email_address_exists()`` has been removed.


Note worthy changes
-------------------

- Dropped support for Django 2.x.
- Officially support Django 4.2.
- New provider: Miro.
- The Mozilla Persona provider has been removed. The project was shut down on
November 30th 2016.


0.54.0 (2023-03-31)
Expand Down
Empty file.
Empty file.
42 changes: 0 additions & 42 deletions allauth/socialaccount/providers/persona/provider.py

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions allauth/socialaccount/providers/persona/tests.py

This file was deleted.

6 changes: 0 additions & 6 deletions allauth/socialaccount/providers/persona/urls.py

This file was deleted.

47 changes: 0 additions & 47 deletions allauth/socialaccount/providers/persona/views.py

This file was deleted.

2 changes: 0 additions & 2 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ Supported Providers

- Paypal (OAuth2)

- Persona

- Pinterest (OAuth2)

- Pocket (OAuth)
Expand Down
38 changes: 0 additions & 38 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,6 @@ delegate authentication. There is no committed timeline for this.
The provider is OAuth2 based. More info:
https://developer.mozilla.org/en-US/Firefox_Accounts

Note: This is not the same as the Mozilla Persona provider below.

The following Firefox Accounts settings are available:

.. code-block:: python
Expand Down Expand Up @@ -1660,42 +1658,6 @@ Development callback URL
http://example.com/accounts/paypal/login/callback


Persona
-------

Note: Mozilla Persona was shut down on November 30th 2016. See
`the announcement <https://wiki.mozilla.org/Identity/Persona_Shutdown_Guidelines_for_Reliers>`_
for details.

Mozilla Persona requires one setting, the "AUDIENCE" which needs to be the
hardcoded hostname and port of your website. See
https://developer.mozilla.org/en-US/Persona/Security_Considerations#Explicitly_specify_the_audience_parameter
for more information why this needs to be set explicitly and can't be derived
from user provided data:

.. code-block:: python
SOCIALACCOUNT_PROVIDERS = {
'persona': {
'AUDIENCE': 'https://www.example.com',
}
}
The optional ``REQUEST_PARAMETERS`` dictionary contains parameters that are
passed as is to the ``navigator.id.request()`` method to influence the
look and feel of the Persona dialog:

.. code-block:: python
SOCIALACCOUNT_PROVIDERS = {
'persona': {
'AUDIENCE': 'https://www.example.com',
'REQUEST_PARAMETERS': {'siteName': 'Example'},
}
}
Pinterest
---------

Expand Down
1 change: 0 additions & 1 deletion example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
"allauth.socialaccount.providers.openid",
"allauth.socialaccount.providers.pinterest",
"allauth.socialaccount.providers.pocket",
"allauth.socialaccount.providers.persona",
"allauth.socialaccount.providers.reddit",
"allauth.socialaccount.providers.shopify",
"allauth.socialaccount.providers.slack",
Expand Down
1 change: 0 additions & 1 deletion test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
"allauth.socialaccount.providers.orcid",
"allauth.socialaccount.providers.patreon",
"allauth.socialaccount.providers.paypal",
"allauth.socialaccount.providers.persona",
"allauth.socialaccount.providers.pinterest",
"allauth.socialaccount.providers.pocket",
"allauth.socialaccount.providers.quickbooks",
Expand Down

0 comments on commit a38f859

Please sign in to comment.