-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into common_dashboard
- Loading branch information
Showing
67 changed files
with
1,708 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Social Login Setup | ||
-------------------------- | ||
|
||
To enable social login for providers, you first need to create an OAuth application on the provider's website. | ||
|
||
|
||
I. Google OAuth Application | ||
---------------------------- | ||
Create an OAuth application on https://console.developers.google.com/ | ||
|
||
Instructions: | ||
|
||
- Follow the setup guide: https://medium.com/@tony.infisical/guide-to-using-oauth-2-0-to-access-google-apis-dead94d6866d | ||
|
||
- Set the callback URL to: `{domain}/accounts/google/login/callback/` | ||
|
||
- Add the client ID and client secret to admin settings | ||
|
||
|
||
II. Github OAuth Application | ||
----------------------------- | ||
Create an OAuth application on https://github.com/settings/applications/new | ||
|
||
Instructions: | ||
|
||
- Set the callback URL to: `{domain}/accounts/github/login/callback/` | ||
|
||
- Add the client ID and client secret to admin settings | ||
|
||
|
||
III. MediaWiki OAuth Application | ||
--------------------------------- | ||
To enable MediaWiki social login for your Eventyay instance, you need to register an OAuth application with MediaWiki. | ||
|
||
Important Notes | ||
~~~~~~~~~~~~~~~~ | ||
|
||
- The OAuth application must be approved by a MediaWiki administrator | ||
|
||
- Until approved, only the application owner can log in | ||
|
||
Registration Steps | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
1. Register your OAuth application at: | ||
https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose | ||
|
||
2. Callback URL Configuration | ||
|
||
- Set the OAuth "callback" URL to: `{domain}/accounts/mediawiki/login/callback/` | ||
|
||
- Example: `http://localhost:8000/accounts/mediawiki/login/callback/` | ||
|
||
3. Carefully read and follow the instructions on the registration page. Tick option: access private information. | ||
|
||
4. The registered application will return: | ||
|
||
- One consumer key | ||
|
||
- One consumer secret | ||
|
||
5. Add the consumer key and consumer secret to your Eventyay admin settings | ||
|
||
After Approval | ||
~~~~~~~~~~~~~~~ | ||
Once approved, other users can log in to your Eventyay instance using their MediaWiki account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,9 @@ dependencies = [ | |
'django-filter==24.3', | ||
'django-scopes==2.0.*', | ||
'django-localflavor==4.0', | ||
'django-cors-headers', | ||
'reportlab==4.2.*', | ||
'Pillow==10.4.*', | ||
'Pillow==11.0.*', | ||
'pypdf==5.1.*', | ||
'django-libsass==0.9', | ||
'libsass==0.23.*', | ||
|
@@ -52,7 +53,7 @@ dependencies = [ | |
'django-markup', | ||
'markdown==3.7', | ||
'bleach==5.0.*', | ||
'sentry-sdk==1.15.*', | ||
'sentry-sdk==2.19.*', | ||
'babel', | ||
'pycparser==2.22', | ||
'django-redis==5.4.*', | ||
|
@@ -101,7 +102,9 @@ dependencies = [ | |
'eventyay-paypal @ git+https://[email protected]/fossasia/eventyay-tickets-paypal.git@master', | ||
'django_celery_beat==2.7.0', | ||
'cron-descriptor==1.4.5', | ||
'django-allauth[socialaccount]==65.3.0' | ||
'django-allauth[socialaccount]==65.3.0', | ||
'eventyay-stripe @ git+https://github.com/fossasia/eventyay-tickets-stripe.git@master', | ||
'pydantic==2.10.4' | ||
] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.