some more auth stuff and documentation

This commit is contained in:
2020-03-29 01:45:12 -04:00
parent e23ef97057
commit feb032b84f
5 changed files with 364 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class PassMan(object):
def getClient(self):
# This may need to be re-tooled in the future.
auth_xml = self.cfg.xml.find('auth')
authmethod_xml = auth_xml.getchildren()[0]\
authmethod_xml = auth_xml.getchildren()[0]
for a in dir(auth):
if a.startswith('_'):
continue

View File

@@ -128,3 +128,6 @@ class Token(_AuthBase):
self.token = self._getEnv(e)
else:
self.token = self._getFile(a)
self.client.token = self.token
self.authCheck()
return(None)

16
vaultpass/gpgauth.py Normal file
View File

@@ -0,0 +1,16 @@
import os
import logging
##
import gpg
# Special shoutout to Jthan for ruining my life.
_logger = logging.getLogger()
class GPGAuth(object):
def __init__(self, gpgauth_xml):
pass