You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? '--credential-name is required when outbound auth type is API_KEY'
247
+
: `--credential-name or inline OAuth fields (--oauth-client-id, --oauth-client-secret, --oauth-discovery-url) required when outbound auth type is ${options.outboundAuthType}`,
248
+
};
249
+
}
250
+
251
+
// Validate inline OAuth fields are complete
252
+
if(hasInlineOAuth){
253
+
if(!options.oauthClientId)
254
+
return{valid: false,error: '--oauth-client-id is required for inline OAuth credential creation'};
255
+
if(!options.oauthClientSecret)
256
+
return{valid: false,error: '--oauth-client-secret is required for inline OAuth credential creation'};
257
+
if(!options.oauthDiscoveryUrl)
258
+
return{valid: false,error: '--oauth-discovery-url is required for inline OAuth credential creation'};
0 commit comments