diff options
Diffstat (limited to 'yarns/900-local.yarn')
-rw-r--r-- | yarns/900-local.yarn | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/yarns/900-local.yarn b/yarns/900-local.yarn index ddce8f8..8c9fd1d 100644 --- a/yarns/900-local.yarn +++ b/yarns/900-local.yarn @@ -60,13 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. IMPLEMENTS GIVEN an access token for (\S+) with scopes (.+) user = get_next_match() scopes = get_next_match() - key = open('token.key').read() - argv = [ - os.path.join(srcdir, 'create-token'), - scopes, - ] - token = cliapp.runcmd(argv, feed_stdin=key) - store_token(user, token) + key = V['privkey'] + issuer = V['iss'] + audience = V['aud'] + token = create_token(key, issuer, audience, scopes) + V['token'] = token ## Start Qvisqve |