StackStorm authentication backend which reads credentials from a htpasswd compatible file on disk.
Project description
Flat file authentication plugin for StackStorm Community edition
Flat file backend supports reading credentials from an Apache HTTPd htpasswd formatted file. To manage this file you can use htpasswd utility which comes with a standard Apache httpd distribution or by installing apache2-utils package on Ubuntu / Debian.
Configuration Options
option | required | default | description |
---|---|---|---|
file_path | yes | Path to the file containing credentials |
Configuration Example
Please refer to the authentication section in the StackStorm documentation for basic setup concept. The following is an example of the auth section in the StackStorm configuration file for the flat-file backend.
[auth]
mode = standalone
backend = flat_file
backend_kwargs = {"file_path": "/path/to/.htpasswd"}
enable = True
use_ssl = True
cert = /path/to/ssl/cert/file
key = /path/to/ssl/key/file
logging = /path/to/st2auth.logging.conf
api_url = https://myhost.example.com:9101
debug = False
The following is an sample htpasswd command to generate a password file with a user entry.
htpasswd -cs /path/to/.htpasswd stark
Copyright, License, and Contributors Agreement
Copyright 2015 StackStorm, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: http://www.apache.org/licenses/LICENSE-2.0
By contributing you agree that these contributions are your own (or approved by your employer) and you grant a full, complete, irrevocable copyright license to all users and developers of the project, present and future, pursuant to the license of the project.
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
Built Distribution
File details
Details for the file st2-auth-backend-flat-file-0.3.0.tar.gz
.
File metadata
- Download URL: st2-auth-backend-flat-file-0.3.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd3e752b57a25a7d236fe3c09818f7ff4c897ee1938d2abd7f349fc720a9031 |
|
MD5 | afb6fd81e6e6cdc9cf4c839d80ee3fa5 |
|
BLAKE2b-256 | 8dfff7ca53ded009ae427f22f617de1e73d88b4221218111159a5205b52e2b94 |
File details
Details for the file st2_auth_backend_flat_file-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: st2_auth_backend_flat_file-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d7019d4d0d249b3116e0dc0c4a890c88e7795fbcd67ccbdadcccb4b2b1dce8d |
|
MD5 | d819d2eac6ee6bc6c61d960d1d9288a1 |
|
BLAKE2b-256 | f8a1df863f4bb3524ce1ef186a02f0612544f10bb219e788db8483a867708a30 |