stf icon indicating copy to clipboard operation
stf copied to clipboard

OAuth documentation missing

Open radekstasiak opened this issue 7 years ago • 4 comments

Hi,

Im slighlty confused as Im trying to look up the documentation on how to use OAuth with the STF login. As far as I remember it used to be part of the README.md however can't find it there anymore. Can you point to a correct place where I read a bit on how to integrate it with STF please?

radekstasiak avatar Oct 22 '19 13:10 radekstasiak

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Oct 22 '19 13:10 issue-label-bot[bot]

It's found here: https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md However it doesn't seem to work for me using Microsoft Azure. Best of luck, and if you figure it out, give me a shout.

LightAutumnMelancholy avatar Oct 22 '19 20:10 LightAutumnMelancholy

Here are OAuth docs: https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md#option-b-oauth-20 What exactly is missing?

koral-- avatar Oct 22 '19 21:10 koral--

dzięki @koral-- ;) I got it running with Google OAuth by executing stf from the command line with the following options:

stf local --auth-type oauth2 --auth-options '["--oauth-authorization-url","https://accounts.google.com/o/oauth2/v2/auth","--oauth-token-url","https://www.googleapis.com/oauth2/v4/token","--oauth-userinfo-url","https://www.googleapis.com/oauth2/v3/userinfo","--oauth-client-id","xxx.apps.googleusercontent.com","--oauth-client-secret","xxx","--oauth-callback-url","http://my.domain.com:7100/auth/oauth/callback","--oauth-scope","openid email"]' --public-ip x.x.x.x

radekstasiak avatar Oct 23 '19 12:10 radekstasiak