Commit 58f0c6db authored by Thomas's avatar Thomas

added addclient command for experimental oauth2 authentication

parent d5165739
from strongr.core.domain.authdomain import AuthDomain
from .wrapper import Command
import json
class AddClient(Command):
Check if the login is a valid user
def handle(self):
authService = AuthDomain.authService()
#queryFactory = AuthDomain.queryFactory()
query = queryFactory.newIsValidUserQuery(self.argument('username'), self.argument('password'))
result = authService.getQueryBus().handle(query)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment