Edit: I am using the correct token, it's my instance that's wrong. This instance is on my local machine for easy development. My other two servers work fine. I moved my app over to my test server, and it works fine.
Building my own rest handler which accesses storage_passwords. I assume I'm using the wrong token? I don't know the structure of "self" here.
import splunk, base64, sys, os, time, json, re, shutil, subprocess, platform, logging, logging.handlers
from splunk.persistconn.application import PersistentServerConnectionApplication
import splunklib.client as client
def __init__(self, command_line, command_arg):
def handle(self, in_string):
authtoken = json.loads(in_string)["session"]["authtoken"]
service = client.connect(token=authtoken)
storage_passwords = service.storage_passwords