Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorize salesforce modal is not showing anything #28

Open
joncodo opened this issue Jan 9, 2023 · 5 comments
Open

Authorize salesforce modal is not showing anything #28

joncodo opened this issue Jan 9, 2023 · 5 comments
Assignees

Comments

@joncodo
Copy link
Contributor

joncodo commented Jan 9, 2023

When you create a new frigg application, Salesforce is configured by default.

Steps to reproduce

  • Create a frigg app
  • Follow the docs for first time use
  • Navigate to the integrations page
  • Enable salesforce
  • See modal spinner
  • Click Connect
  • Nothing happens and you are not redirected to salesforce to log in

Expected:

  • I should be prompted for a login modal to salesforce at some point in this flow

Screen Shot 2023-01-09 at 10 57 53 AM

@seanspeaks
Copy link
Contributor

seanspeaks commented Jan 9, 2023 via email

@sheehantoufiq
Copy link
Contributor

@seanspeaks @joncodo
This one is most likely because salesforce is using basic or apikey auth but no json schema is being sent to the frontend to collect that data (api key etc).

Or if it's supposed to be OAuth then the getAuthorizationRequirements function is returning undefined for type

@sheehantoufiq
Copy link
Contributor

sheehantoufiq commented Jan 9, 2023

If neither of those solutions work, it might be the redux issue from the other issue. The AuthorizationRequirements isn’t getting mapped to the redux state

@joncodo
Copy link
Contributor Author

joncodo commented Feb 19, 2023

So @seanspeaks can you give a spec for what is supposed to happen when you enable salesforce in a new create-frigg-app?

@joncodo
Copy link
Contributor Author

joncodo commented Feb 27, 2023

@seanspeaks im a bit blocked on this task right now. Here is what I propose should happen:

  1. Create a frigg app
  2. connect to db
  3. run app
  4. login to UI
  5. Enable salesforce

If no config is set, the UI lets you set your config in the UI and saves it locally to disk as the .env file

Once config is set properly for salesforce, when you click the enable button in the UI, you are redirected to a salesforce login page.

Once you log in, you are redirected to the application and it shows that you have connected salesforce and which user you have authorized in the UI.

This tells the user that it is working.

Then I think we have a list of all routes that we support with a live coding tool to make requests like postman right from the frontend of the UI.

I think these are good ideas but I need them approved by @seanspeaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants