gogatekeeper / gatekeeper

An OpenID / Proxy service
https://gogatekeeper.github.io/gatekeeper/
Apache License 2.0
253 stars 43 forks source link

Question : Can use Gatekeeper with curl ? #448

Closed NonneTrapuE closed 2 months ago

NonneTrapuE commented 2 months ago

Hi !

Have a question : Can i log in Gatekeeper with curl or cli commands ?

I test but it don't work, maybe it's because i have wrong config.

Anyone have already test ?

PS : when i test with curl, response is html template of keycloak, not the service in back

Thanks

p53 commented 2 months ago

@NonneTrapuE of course you can, how you need to use it depends of what kind of Oauth flow you are using, (code flow=no-redirects=false in gatekeeper, you need to supply cookie jar with proper cookies; password/resource-owner flow=no-redirects=true => send token in Bearer Authentication header)

NonneTrapuE commented 2 months ago

Very thanks for your quick answer ! I will test quickly :D