work in progress: authentication: provide config parameter
This commit is contained in:
parent
74a3f9210b
commit
e01a7362f9
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ from scopes.server import auth
|
|||
from zope.authentication.interfaces import IAuthentication
|
||||
from zope.component import getUtility, provideUtility
|
||||
|
||||
def registerAuthUtility():
|
||||
def registerAuthUtility(config):
|
||||
baseAuth = getUtility(IAuthentication)
|
||||
print('*** registerAuthUtility, baseAuth:', baseAuth)
|
||||
provideUtility(auth.JwtAuthentication(baseAuth))
|
||||
|
|
|
@ -23,7 +23,7 @@ def main():
|
|||
zope_conf = getattr(config, 'zope_conf', 'zope.conf')
|
||||
print(f'starting loops server... - conf: {zope_conf}')
|
||||
app = getWSGIApplication(zope_conf)
|
||||
auth.registerAuthUtility()
|
||||
auth.registerAuthUtility(config)
|
||||
run(app, config)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Reference in a new issue