KeyRock Identity Manager client for Django
Project description
# django-keyrock
KeyRock Identity Manager client for Django
Made by [https://glampinghub.com](https://glampinghub.com)
## How to Install
1. Install it:
```sh
pip install django-keyrock
```
2. Add 'keyrock' to your INSTALLED_APPS:
```python
INSTALLED_APPS += ('keyrock',)
```
3. Add the context processor to your Django settings:
```python
TEMPLATE_CONTEXT_PROCESSORS += (
'keyrock.context_processors.keyrock_url',
)
```
4. Add KEYROCK_URL to your Django settings:
```python
KEYROCK_URL = 'your_domain' # Example: KEYROCK_URL = 'https://yoursite.com'
```
5. Add the urls to urls.py:
```python
urlpatterns += patterns(
'',
url(r'keyrock/', include('keyrock.urls')),
)
```
6. The url to sign up:
```html
<a href="{{ KEYROCK_URL }}/sign_up/">
Sign Up
</a>
```
7. You can add a link to reset password:
```html
<a href="{{ KEYROCK_URL }}/password/request/">
Forgot your password/email?
</a>
```
## Settings
**KEYROCK_APP_CLIENT_ID** Application ID in Keyrock. When you create your
application in Keyrock it will generate a pair of keys for it, this is the
generated id.
**KEYROCK_APP_CLIENT_SECRET** Application Secret in Keyrock. When you create
your application in Keyrock it will generate a pair of keys for it, this is the
generated secret.
**KEYROCK_REDIRECT_URL** URL to redirect to when the login/signup
process is completed. It must be a URL without parameters. Typically your
homepage URL.
**KEYROCK_URL** KeyRock instance URL, including protocol. Example:
*https://keyrock.example.com*
## Legal Notice
This software is licensed under a BSD 3-clause. You can find a copy of the
license in this repository.
Copyright (c) 2016, Glamping Hub <it@glampinghub.com>
KeyRock Identity Manager client for Django
Made by [https://glampinghub.com](https://glampinghub.com)
## How to Install
1. Install it:
```sh
pip install django-keyrock
```
2. Add 'keyrock' to your INSTALLED_APPS:
```python
INSTALLED_APPS += ('keyrock',)
```
3. Add the context processor to your Django settings:
```python
TEMPLATE_CONTEXT_PROCESSORS += (
'keyrock.context_processors.keyrock_url',
)
```
4. Add KEYROCK_URL to your Django settings:
```python
KEYROCK_URL = 'your_domain' # Example: KEYROCK_URL = 'https://yoursite.com'
```
5. Add the urls to urls.py:
```python
urlpatterns += patterns(
'',
url(r'keyrock/', include('keyrock.urls')),
)
```
6. The url to sign up:
```html
<a href="{{ KEYROCK_URL }}/sign_up/">
Sign Up
</a>
```
7. You can add a link to reset password:
```html
<a href="{{ KEYROCK_URL }}/password/request/">
Forgot your password/email?
</a>
```
## Settings
**KEYROCK_APP_CLIENT_ID** Application ID in Keyrock. When you create your
application in Keyrock it will generate a pair of keys for it, this is the
generated id.
**KEYROCK_APP_CLIENT_SECRET** Application Secret in Keyrock. When you create
your application in Keyrock it will generate a pair of keys for it, this is the
generated secret.
**KEYROCK_REDIRECT_URL** URL to redirect to when the login/signup
process is completed. It must be a URL without parameters. Typically your
homepage URL.
**KEYROCK_URL** KeyRock instance URL, including protocol. Example:
*https://keyrock.example.com*
## Legal Notice
This software is licensed under a BSD 3-clause. You can find a copy of the
license in this repository.
Copyright (c) 2016, Glamping Hub <it@glampinghub.com>
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
django-keyrock-0.0.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file django-keyrock-0.0.2.tar.gz
.
File metadata
- Download URL: django-keyrock-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565ffddba17da992427a21768a52176112f26cefc137d13c18b8316a2028e87f |
|
MD5 | 782bc54019f2b5e3c6a5a1e069a627a9 |
|
BLAKE2b-256 | cd9d3ea4e332c2e880cda792395f6e53687e694eebacb40be18c1d8375198703 |
File details
Details for the file django_keyrock-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_keyrock-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67273753b0411c257259972f15687fa6dfa73fda326133b26c17ccc2db173ff8 |
|
MD5 | cb0c8c11a4c04f4ad1fdfdaa92e4c60d |
|
BLAKE2b-256 | 73893c2ec621a8d54d01a1dfc99e618762e9e9427ad5d9f7b06c7494076ade4f |