Jetbrains Hub OAuth2 provider for django-allauth
Project description
django-allauth-jetbrains-hub
Jetbrains Hub OAuth2 provider for django-allauth
Installation
Requirements
- django-allauth (https://github.com/pennersr/django-allauth)
Python Package
pip install django-allauth-jetbrains-hub
settings.py
The server value in the path request must be set to point to your Jetbrains hub instance and include the full path to it. For example, if your instance is at https://example.com/ but you get redirected to https://example.com/hub/ you should set server to https://example.com/hub/.
INSTALLED_APPS = (
...
# The following apps are required:
'django.contrib.auth',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
...
# Add allauth_microsoft to installed_apps
'allauth_jetbrains_hub'
...
)
SOCIALACCOUNT_PROVIDERS = {
'jetbrains-hub': {
'SERVER': 'https://example.com/hub/',
}
}
Post-Installation
Create service in your hub instance
- Create a service in your hub instance as documented here.
- Open the service in HUB.
- Set the Redirect URI to https://example.com/accounts/jetbrains-hub/login/callback/.
- Copy your Application ID and click change secret to get a new secret.
- Enter the Application ID and Secret into the Django Admin interface.
Contributors
- Gary Kramlich grim@reaperworld.com
Forked from github.com/schaenzer/django-allauth-microsoft.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-allauth-jetbrains-hub-0.0.2.tar.gz
.
File metadata
- Download URL: django-allauth-jetbrains-hub-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011bded0a3672d62c6c1198f3a6b82ada670570a8af0adf0d5056f1c46bd1079 |
|
MD5 | b1724293fdbf3c0e4a07b17bbd6007c9 |
|
BLAKE2b-256 | 4dc25f11f37ebdbd3b1af0a5d86f41af62ee72cd8049a49a389ca25bc32f631f |