Skip to main content

A simple Django login/logout page w/ bootstrap-4.

Project description

django-authen 2.0.0
--------------------

Authen is a simple Django **login** and **logout** page written with **bootstrap-4**

Quick start
-----------

1. How to install
```
pip install django-authen
```

2. Add **authen** **django_python3_ldap** and to your INSTALLED_APPS in **settings.py**
```
INSTALLED_APPS = [
...
'django_python3_ldap',
'authen',
]
```

3. Include the **authen** urls in your projects **urls.py**
```
path('authen/', include('authen.urls')),
```

4. Set **LOGIN_URL** to authen login url in **settings.py**
```
LOGIN_URL = "/authen/login/"
```
5. Set **AUTHEN** configuration in **settings.py**
```
AUTHEN = {
"COMPANY_NAME": "Your Company Name",
"LOGIN_TITLE": "Login w/ your id",
"LOGOUT_TITLE": "Logged out.",
"LOGOUT_MESSAGE": "Thanks for spending some quality time with the our site today.",
}
```
5. Finally run migration
```
python manage.py migrate
```

6. Visit `/authen/login/` for login and `/authen/logout/` for logout page on browser.

-----------

Screenshots
-----------

| login |
|----------------------------|
| ![login](assets/login.png) |

| logout |
|----------------------------|
|![logout](assets/logout.png)|

-----------
```
Copyright 2018 semiworld.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-authen-2.0.0.tar.gz (109.8 kB view details)

Uploaded Source

Built Distribution

django_authen-2.0.0-py3-none-any.whl (111.4 kB view details)

Uploaded Python 3

File details

Details for the file django-authen-2.0.0.tar.gz.

File metadata

  • Download URL: django-authen-2.0.0.tar.gz
  • Upload date:
  • Size: 109.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for django-authen-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3043f00e2058300ba930173c4935d03462619d4b0bb874d3d9a2540f45974dea
MD5 9ff51ebfff77086f01eff98a5c994527
BLAKE2b-256 a62d063b534323fb304cfa43bec94035ea8c58575c1fbe192b45e8b291c5f013

See more details on using hashes here.

File details

Details for the file django_authen-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_authen-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 111.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for django_authen-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0d617daf216531a061c73fb7a7b179acdd7184a6fdbcea626d577519c5c93e
MD5 95fb5670717306166f10b643f77ef584
BLAKE2b-256 e86601b7d1a65db9f4aa5c48e9060d427c950ced2d63b6057f3082c1db52d4fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page