syndesisio / syndesis-react

[FORK] A flexible, customizable, open source platform that provides core integration capabilities as a service.
Apache License 2.0
3 stars 19 forks source link

refactor(oauth): prevent credentials POST for non-OAuth #458

Closed zregvart closed 5 years ago

zregvart commented 5 years ago

When GET /api/v1/connectors/{id}/credentials returns {} we should not invoke a POST /api/v1/connectors/{id}/credentials.

This makes it so that the invocation of useOAuthFlow is conditional on the result of useConnectorCredentials.

riccardo-forina commented 5 years ago

PR Storybook available here

pure-bot[bot] commented 5 years ago

Pull request approved by @riccardo-forina - applying approved label