some more auth stuff and documentation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
16
vaultpass/gpgauth.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user