buzzfeed / sso

sso, aka S.S.Octopus, aka octoboi, is a single sign-on solution for securing internal services
MIT License
3.1k stars 186 forks source link

How to use SSO in a CLI application? #276

Open LukeMathWalker opened 4 years ago

LukeMathWalker commented 4 years ago

Hey! I have been reading around about the project and it does look very interesting. I am trying to understand if it can fit a non-browser flow: if we wanted to integrate SSO in a CLI application, what would the preferred/recommended way to proceed?

In other words, if we want to interact with a server which is behind SSO protection, how do we get back from the browser (after a successful login) the cookies in order to use them in the CLI when making requests against the server?