dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

API auth when SSO is enabled using PKCE

Open SREbharatkumar opened this issue 3 years ago • 7 comments

Hello Netflix team,

We are using dispatch with PKCE auth enabled using OKTA SSO. We are in the process of building some automation will need to make use of dispatch's API for incident management. The current API documentation provides details only on username and password based auth.

Is there support for any token based auth available for using the APIs, when PKCE is used for logging onto the UI, where we can create an API/App token to communicate with the API?

SREbharatkumar avatar Jul 20 '23 05:07 SREbharatkumar

@whitdog47 was investigating possible use cases for API tokens. As of today, there is no real way of doing this unless you create your own Authentication plugin.

kevgliss avatar Jul 31 '23 22:07 kevgliss

@SREbharatkumar - currently you can do a post to /api/v1/<organization>/auth/login with the email and password in the body and get a token as a response. Would that work?

whitdog47 avatar Aug 01 '23 22:08 whitdog47

@kevgliss re. use cases I was looking into a similar issue recently when trying to send in an email as a webhook to create a Signal and then a case.

For this the workaround suggested by @whitdog47 won't work, but this is perhaps where the (future?) signals consumer plugins and e.g. something like PubSub may come into play?

ghost avatar Aug 09 '23 06:08 ghost

@aidn-tommy I'd have to hear more about the email <-> signal -> case use-case, but today I think we'd implement such functionality as a signal-consumer plugin and have the plugin monitor a mailbox or dl for new messages to process.

kevgliss avatar Aug 09 '23 14:08 kevgliss

Also, surrounding proper API token support. We do agree it's something we should have, but we don't currently have an internal use case so it's not super high on the priority list. Internally, we have mTLS (and internal authentication plugin) that makes such API tokens not required for our own integrations. But we do realize this isn't a reasonable solution for most folks.

kevgliss avatar Aug 09 '23 14:08 kevgliss

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

github-actions[bot] avatar Sep 09 '23 00:09 github-actions[bot]

This issue was closed, because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Sep 14 '23 00:09 github-actions[bot]