Reusable Django app to connect servers with the Tribe web service at Dartmouth College
Project description
=====
Django Tribe Client
=====
Tribe client is a simple Django app to connect your server to the 'Tribe' web service
(located at http://tribe.greenelab.com).
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "tribe-client" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'tribe_client',
)
2. Include the tribe-client URLconf in your project urls.py like this::
url(r'^tribe_client/', include('tribe_client.urls')),
3. Register your client server at http://tribe-new.greenelab.com/oauth2/applications/. Make sure to:
a. Select "Confidential" under "Client type" and
b. Select "Authorization Code" under "Authorization grant type"
c. Enter the client server address plus "tribe_client/get_token" in the "Redirect uris" box
4. Write down the Client id in the "TRIBE_ID" setting and the Client secret in the TRIBE_SECRET setting
in the settings.py file
5. TRIBE_REDIRECT_URI setting should be the address of the client server plus "tribe_client/get_token"
6. Make sure that you have a base.html template that the tribe_client templates can extend
7. Make a link that takes the user to the '/tribe_client/' url of your website for them to log in using Tribe
Django Tribe Client
=====
Tribe client is a simple Django app to connect your server to the 'Tribe' web service
(located at http://tribe.greenelab.com).
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "tribe-client" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'tribe_client',
)
2. Include the tribe-client URLconf in your project urls.py like this::
url(r'^tribe_client/', include('tribe_client.urls')),
3. Register your client server at http://tribe-new.greenelab.com/oauth2/applications/. Make sure to:
a. Select "Confidential" under "Client type" and
b. Select "Authorization Code" under "Authorization grant type"
c. Enter the client server address plus "tribe_client/get_token" in the "Redirect uris" box
4. Write down the Client id in the "TRIBE_ID" setting and the Client secret in the TRIBE_SECRET setting
in the settings.py file
5. TRIBE_REDIRECT_URI setting should be the address of the client server plus "tribe_client/get_token"
6. Make sure that you have a base.html template that the tribe_client templates can extend
7. Make a link that takes the user to the '/tribe_client/' url of your website for them to log in using Tribe
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
Close
Hashes for django-tribe-client-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1efcc323614c66db29d3c8d3ea16d1eb26440da5c06da647a6e911c020157cc |
|
MD5 | decc862e4057da4cfd5d3bbdf4f4a9a6 |
|
BLAKE2b-256 | a1409ccdd4453690f5c05f1664e4314d2a4134d841964a989decddc42572d8e8 |