Skip to main content

MongoDB authentication plugin for StackStorm Community edition

Build Status IRC

The MongoDB backend reads and authenticates user against data from a MongoDB collection named users. The users collection and the user entries will have to be generated manually. Entries need to have the following attributes:

field description
username User name
salt Password salt
password SHA256 hash for the salt+password - SHA256(salt+password)

Configuration Options

option required default description
db_host no localhost Hostname for the MongoDB server
db_port no 27017 Port for the MongoDB server
db_name no st2auth Database name in MongoDB
db_username no None Username for MongoDB login
db_password no None Password for MongoDB login

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 = mongodb
backend_kwargs = {"db_username": "admin", "db_password": "pass123"}
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

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.

Release files for st2-auth-backend-mongodb 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st2-auth-backend-mongodb 0.3.0
File Size Uploaded
st2-auth-backend-mongodb-0.3.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for st2-auth-backend-mongodb 0.3.0
File Interpreter ABI Platform
st2_auth_backend_mongodb-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / st2-auth-backend-mongodb-0.3.0.tar.gz

Download URL st2-auth-backend-mongodb-0.3.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
48a916f8ba2343e591a1ae105261c4af52ebc7f04ce5979a1a7d3b35e3c13976
BLAKE2b-256 checksum
How to use checksums
0fed78329e1c7db70c69b356e4d20706c618289a27286f8077e7ef599211742f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / st2_auth_backend_mongodb-0.3.0-py3-none-any.whl

Download URL st2_auth_backend_mongodb-0.3.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
747297fb77dc4eb1fbeff7aa3422d754420e82f4a64ab7327edcd4f7268b3272
BLAKE2b-256 checksum
How to use checksums
45574faf2a8eb69d50e72e3f211e334174f24259ebec9cadb87e88ae3fc159e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page