warp-tech / warpgate

Smart SSH, HTTPS and MySQL bastion that requires no additional client-side software
Apache License 2.0
3.8k stars 117 forks source link

docs: how to authenticate with the api #460

Open ntimo opened 1 year ago

ntimo commented 1 year ago

I am currently trying to use Ansible to create targets in warpgate and I am struggling hard to get the authorization working. I tried to use basic auth but this does not seem to work. What do I need to do in order to use the API?

Eugeny commented 1 year ago

I'm planning to add token authentication, but right now the only way to authenticate is through the normal login flow and use the session cookie - it's a separate API that is documented in https://github.com/warp-tech/warpgate/blob/main/warpgate-web/src/gateway/lib/openapi-schema.json

The relevant API operations are: login, otpLogin and startSSO

ntimo commented 1 year ago

Thank you very much :) @Eugeny

clysto commented 4 months ago

Is the feature of token authentication on the way? That will be very useful!