diff options
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r-- | yarns/900-implements.yarn | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 71461e8..b369833 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -30,17 +30,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. IMPLEMENTS GIVEN an access token for scopes (.+) scopes = get_next_match() - vars['issuer'] = 'yarn-issuer' - vars['audience'] = 'yarn-audience' + key = open('token.key').read() argv = [ os.path.join(srcdir, 'create-token'), - 'token.key', - vars['issuer'], - vars['audience'], scopes, ] - token = cliapp.runcmd(argv) + token = cliapp.runcmd(argv, feed_stdin=key) write('token.jwt', token) + vars['issuer'] = 'localhost' + vars['audience'] = 'localhost' ## Controller configuration |