Get OAuth-Callback URLs from backend

This commit is contained in:
Jan Oberhauser
2020-09-30 15:50:43 +02:00
parent 6f576b3da9
commit f1680386ca
6 changed files with 26 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ export default mixins(
oAuthCallbackUrl (): string {
const types = this.parentTypes(this.credentialTypeData.name);
const oauthType = (this.credentialTypeData.name === 'oAuth2Api' || types.includes('oAuth2Api')) ? 'oauth2' : 'oauth1';
return this.$store.getters.getWebhookBaseUrl + `rest/${oauthType}-credential/callback`;
return this.$store.getters.oauthCallbackUrls[oauthType];
},
requiredPropertiesFilled (): boolean {
for (const property of this.credentialProperties) {