Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedora-infra/taiga-contrib-fas-openid-auth
FAS Openid Auth plugin for taiga
https://github.com/fedora-infra/taiga-contrib-fas-openid-auth
Last synced: about 1 month ago
JSON representation
FAS Openid Auth plugin for taiga
- Host: GitHub
- URL: https://github.com/fedora-infra/taiga-contrib-fas-openid-auth
- Owner: fedora-infra
- Archived: true
- Created: 2015-05-20T18:14:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T10:38:33.000Z (almost 6 years ago)
- Last Synced: 2024-09-25T22:39:20.917Z (about 2 months ago)
- Language: Python
- Size: 58.6 KB
- Stars: 2
- Watchers: 9
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Taiga contrib FAS OpenID auth
=========================The Taiga plugin for FAS (Fedora Account System) authentication.
Flow diagram
------------Roughly, this is how it works
```
taiga-front taiga-back fedoauth
---------------------------------------------------add a FAS
button
|
V
click -----ajax------> auth?
|
hidden <----html---------*
form, auto
submit -----POST-------------------------> auth?
|
verify and store <---POST---*
user in the db
|
verify <----302----------*
and update
the UI to
say welcome!
```Installation
------------### Taiga Back
In your Taiga back python virtualenv install the pip package `taiga-contrib-fas-openid-auth` with:
```bash
pip install taiga-contrib-fas-openid-auth
```Modify your settings/local.py and include the line:
```python
INSTALLED_APPS += ["taiga_contrib_fas_openid_auth"]# We monkey patch the rest_framework exception handler to allow us to do
# the 302 redirects that we need to do for openid to finish.
REST_FRAMEWORK[“EXCEPTION_HANDLER”] = "taiga_contrib_fas_openid_auth.services.exception_handler"
```### Taiga Front
Create the directory structure for the new plugin
```bash
mkdir -p dist/plugins/fas-openid-auth
mkdir -p dist/plugins/fas-openid-auth/images/contrib
```Download in your `dist/plugins/` directory of Taiga front the `taiga-contrib-fas-openid-auth` compiled code:
```bash
cd dist/plugins/fas-openid-auth
wget "https://raw.githubusercontent.com/fedora-infra/taiga-contrib-fas-openid-auth/$(pip show taiga-contrib-fas-openid-auth | awk '/^version: /{print $2}')/front/dist/fas_openid_auth.js"
wget "https://raw.githubusercontent.com/fedora-infra/taiga-contrib-fas-openid-auth/$(pip show taiga-contrib-fas-openid-auth | awk '/^version: /{print $2}')/front/dist/fas-openid-auth.json"
```Download in your `dist/plugins/fas-openid-auth/images/contrib` directory of Taiga front the `taiga-contrib-fas-openid-auth` Fedora icon:
```bash
cd dist/plugins/fas-openid-auth/images/contrib
wget "https://raw.githubusercontent.com/fedora-infra/taiga-contrib-fas-openid-auth/$(pip show taiga-contrib-fas-openid-auth | awk '/^Version: /{print $2}')/front/images/contrib/fedora-logo.png"
```Include in your dist/conf.json in the contribPlugins list the value `"/plugins/fas-openid-auth/fas-openid-auth.json"`:
```json
...
"contribPlugins": ["/plugins/fas-openid-auth/fas-openid-auth.json"]
...
```