Code Monkey home page Code Monkey logo

custom_connector_docs's People

Contributors

aaron022 avatar bennettgo avatar brendonyang avatar bryanyap avatar codechito avatar ctjsctjs avatar dkogias avatar ephesoft-stitus avatar kandadaboggu avatar mahesh-railsdata avatar mrafiqk avatar sandcrafts avatar sharat-developer avatar svchandra avatar towardsabetterworld avatar wilsonliaows avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

custom_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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.