custom_connector_docs's People
Forkers
integration2018 ctjsctjs sandeepbhattarai dionode venntechnology wilsonliaows ayraarellano-id bhanditz skennicutt codechito jayamishra1406 hiranipradeep zohomail chayce-duncan seesawdev procore-it tiago-esperanca watchkeeper-international cijujoseph drrcked61 sophatsam aridamkumar fancykingstar cloudmersive didgeri clausehq j-madrone tuanba2203 junitaganna colleran doctordav011 hlaminswe johnhuffmanattrackvia drcariel antazoey ephesoft-stitus 2checkout bdunogier automatethings baepiff eb-h soumyaskkulkarni slackmon docadam sanchojaf emaxi lucascury msado90 moni547 morettigcustom_connector_docs's Issues
Can we prevent connection creation?
Hello.
We created our custom Google SSO connector.
When user connect to this connector with account that doesn't have google workspace. Connector allows us to connect and we see that connector wiget connected at Workato UI.
But when we trying to start recipe that uses this connector we see error
We can't start this recipe due to connection errors
Google SSO is not connected.
It's confusing customers because it's not clear that we have connection issue.
But if account with Google Workspace it's works as expected.
So, do you know something about this broblem and how to fix it? It looks like workato widget issue
Here is how connector looks like
`
{
title: "TEST Google SSO",
connection: {
fields: [
{
name: "client_id",
optional: false
},
{
name: "client_secret",
optional: false,
control_type: "password"
}
],
authorization: {
type: "oauth2",
authorization_url: lambda do |connection|
scopes = [
"https://www.googleapis.com/auth/admin.reports.audit.readonly",
"https://www.googleapis.com/auth/admin.reports.usage.readonly",
"https://www.googleapis.com/auth/admin.directory.user.readonly"
].join(" ")
"https://accounts.google.com/o/oauth2/auth?client_id=" \
"#{connection['client_id']}&response_type=code&scope=#{scopes}" \
"&access_type=offline&include_granted_scopes=true&prompt=consent"
end,
acquire: lambda do |connection, auth_code, redirect_uri|
response = post("https://accounts.google.com/o/oauth2/token").
payload(client_id: connection["client_id"],
client_secret: connection["client_secret"],
grant_type: "authorization_code",
code: auth_code,
redirect_uri: redirect_uri).
request_format_www_form_urlencoded
[response, nil, nil]
end,
refresh: lambda do |connection, refresh_token|
post("https://accounts.google.com/o/oauth2/token").
payload(client_id: connection["client_id"],
client_secret: connection["client_secret"],
grant_type: "refresh_token",
refresh_token: refresh_token).
request_format_www_form_urlencoded
end,
refresh_on: [401],
detect_on: [/"errors"\:\s*\[/],
apply: lambda do |_connection, access_token|
headers("Authorization" => "Bearer #{access_token}")
end
},
base_uri: lambda do |_connection|
"https://www.googleapis.com"
end
},
object_definitions: {},
custom_action: true,
test: lambda do |_connection|
get("/admin/reports/v1/activity/users/all/applications/token")
end,
triggers: {}
}`
Edit on GitHub button 404
Perhaps this is not the place to raise this issue, but the Edit on GitHub
button for all of docs.workato.com seems to 404.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.