formkiq / formkiq-document-console

This is a turn-key web interface for FormKiQ's Document Management System, built with React.
1 stars 1 forks source link

Changing authorization to Okta #2

Open ravircit opened 4 months ago

ravircit commented 4 months ago

Is that possible to change auth from Cognito to Octa. have done the set up Okta as a SAML identity provider in an Amazon Cognito user pool. but redirection doen't work

reganwolfrom commented 4 months ago

@ravircit sorry for the delay in replying.

Are you thinking in terms of altering the console code on your side? We haven't tested yet, but you can update /assets/config.json to use "saml" instead of "cognito". Have you tried that already?

ravircit commented 4 months ago

@reganwolfrom Thanks for reply. Yes I have tried that. It just redirect to Okta with normal login flow. not handling call back. I want to completely by pass Cognito user authentication, to replace with Okta. Is that possible?

reganwolfrom commented 4 months ago

Sorry for the delay in getting back to you, @ravircit.

Right now, if Okta is not working with the current flow, there are two ways I can think of to use Okta directly:

  1. You can alter the FormKiQ APIs to use Okta instead of Cognito
  2. You can set up a server-side proxy, such as an API Gateway triggering a Lambda, that handles your Okta authorizations and then access FormKiQ's API endpoints using an API Key

For #2, we have a tutorial you can look at: https://docs.formkiq.com/docs/tutorials/using-a-server-side-proxy

Otherwise, we can set up Okta as part of a FormKiQ Pro installation. Hope this helps. Thanks!