| 1 |
Frontier |
| 2 |
-------- |
| 3 |
|
| 4 |
The Frontier provider is OAuth2 based. |
| 5 |
|
| 6 |
Client registration |
| 7 |
******************* |
| 8 |
Frontier Developments switched to OAuth2 based authentication in early 2019. |
| 9 |
Before a developer can use the authentication and CAPI (Companion API) service |
| 10 |
from Frontier, they must first apply for access. |
| 11 |
|
| 12 |
Go to https://user.frontierstore.net/ and apply for access. Once your application |
| 13 |
is approved for access. Under "Developer Zone", you will see a list of authorized |
| 14 |
clients granted access. To add access for your client, click on the "Create Client" |
| 15 |
button and fill out the form and submit the form. |
| 16 |
|
| 17 |
After creating the client access, click on "View" to reveal your Client ID and |
| 18 |
Shared Key. You can also regenerate the key in an event that your shared key is |
| 19 |
compromised. |
| 20 |
|
| 21 |
Configuring Django |
| 22 |
****************** |
| 23 |
The app credentials are configured for your Django installation via the admin |
| 24 |
interface. Create a new socialapp through ``/admin/socialaccount/socialapp/``. |
| 25 |
|
| 26 |
Fill in the form as follows: |
| 27 |
|
| 28 |
* Provider, "Frontier" |
| 29 |
* Name, your pick, suggest "Frontier" |
| 30 |
* Client id, is called "Client ID" by Frontier |
| 31 |
* Secret key, is called "Shared Key" by Frontier |
| 32 |
* Key, is not needed, leave blank. |
| 33 |
|
| 34 |
Optionally, you can specify the scope to use as follows: |
| 35 |
|
| 36 |
.. code-block:: python |
| 37 |
|
| 38 |
SOCIALACCOUNT_PROVIDERS = { |
| 39 |
'frontier': { |
| 40 |
'SCOPE': ['auth', 'capi'], |
| 41 |
'VERIFIED_EMAIL': True |
| 42 |
}, |
| 43 |
} |