apideck-libraries / vault-core

Apideck Vault Modal component for React
https://www.apideck.com/products/vault
MIT License
7 stars 1 forks source link

Vault widget in the Admin was not showing the correct connector state #48

Open brahimmouhamou opened 2 years ago

brahimmouhamou commented 2 years ago

Description

While GoLayer was trying out our platform they noticed that while the API Explorer was indicating that a connection was callable (screenshot 2), clicking on "Test Vault" via the configuration page led to "Unauthorized" status (screenshot 1).

I, @brahimmouhamou , tried it to with the support@apideck.com account but the widget indicated Connected. Clicking around the admin and trying it again led to me reproducing the problem a couple of times. 10 minutes later was not able to reproduce the problem again.

Screenshot_2022-07-13_at_13_44_58.png

Screenshot_2022-07-13_at_13_35_01.png

jakeprins commented 2 years ago

I've been trying to reproduce it, but I can't. The problem does not seem to be in React Vault, because it will only show "Unauthorized" if the connection state is "added". Not sure how the connection state can be "added" in React Vault but "callable" in API Exporer. That should only be possible if they used a different applicationId or consumerId. ConsumerId should be "test-consumer" in both cases, so don't think that's the problem. Do they have multiple applications? Would love to see the requests that are being made, but unfortunately, I'm just not able to reproduce it. Any specific steps I could take to reproduce it?

brahimmouhamou commented 2 years ago

Not sure 🤷‍♂️ couldn't reproduce it either. Maybe put the issue on hold or ask the customer if they can still reproduce the issue?