CLI client login to CAS to access REST service

33 views
Skip to first unread message

Paul Roemer

unread,
Oct 31, 2018, 6:47:32 AM10/31/18
to CAS Community
Hey guys,

as I am on it already:

What is the best approach to use CAS in conjunction with a command line tool to login to a secured service? I read through the documentation and the first problem seems to be that I am not in a browser context. Am I forced to talk to the CAS REST API? Or are there other ways to solve the authentication?

At the moment I would:
1) Talk to the CAS REST API to get a JWT token and store it when executing
> awesome-command login <username>

2) Use the token to talk to my REST API for subsequent commands
> awesome-command init <project name>

Cheers,
  Paul
Reply all
Reply to author
Forward
0 new messages