Saml
Set up a new bench, substitute a path to the python version to use, which should 3.10 latest
- Author: agritheory
- Repository: https://github.com/agritheory/saml
- GitHub stars: 0
- Forks: 2
- License: NOASSERTION
- Category: Developer Tools
- Maintenance: Actively Maintained
- Frappe versions: v14, v15, v16
Install Saml
bench get-app https://github.com/agritheory/saml
Add the Frappe Gems badge to your README
Maintain Saml? Paste this into your README:
[](https://frappegems.com/gems/apps/agritheory/saml)
About Saml
## SAML
SAML2 Login for Frappe apps
#### License
MIT
## Install Instructions
Set up a new bench, substitute a path to the python version to use, which should 3.10 latest
```
# for linux development
bench init --frappe-branch version-15 {{ bench name }} --python ~/.pyenv/versions/3.10.4/bin/python3
```
Create a new site in that bench
```
cd {{ bench name }}
bench new-site {{ site name }} --force --db-name {{ site name }}
bench use {{ site name }}
bench set-config developer_mode 1
bench set-config mute_emails 1
```
Update and get the site ready
```
bench start
```
Install the SAML app
```
bench get-app saml
bench --site {{ site name }} install-app saml
```
NOTE: If you get `xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')`, ensure lxml and xmlsec use the same libxml2:
- **Linux (recommended):** `sudo apt-get install python3-lxml` per [lxml installation docs](https://lxml.de/installation.html)
- **Fallback:** `bench pip install --force-reinstall lxml` (avoid `--no-binary lxml` as it can timeout on slower systems)
In a new terminal window
```
bench update
bench migrate
bench build
```
To run mypy and pytest
```shell
source env/bin/activate
mypy ./apps/saml/saml --ignore-missing-imports
pytest ./apps/saml/saml/tests -s --disable-warnings
```
## Tests (using Keycloak)
This app comes with a `docker-compose` file that sets up a Keycloak instance for testing, which would rely on your current site's information.
In the tests folder, simply run the following script to get the active bench port and start the Keycloak instance:
```shell
./keycloak.sh --build
```
Related Developer Tools apps for Frappe & ERPNext
- Frappe — Low code web framework for real world applications, in Python and Javascript
- Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
- Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
- Bench — CLI to manage Multi-tenant deployments for Frappe apps
- Frappe Ui — A set of components and utilities for rapid UI development
- Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
- Gameplan — Open Source Discussions Platform for Remote Teams
- Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.