Rest API Outh2 Authentication

  • 23Views
  • Last Post 04 November 2021
0
votes
Matthew Colley posted this 01 November 2021

Hello,

I am working with a client that has multiple SaaS which have their data accessed via APIs. These are small SaaS and so do not have their own connectors, so I would have to use the 'Rest' connector. The majority of them use OAuth2 whereby credentials (Client ID & Secret) are 'POST' to their token-auth url which returns an access token which is then used to query an endpoint url.

Can this be done in Skyvia?

Regards,

Mat

Order By: Standard | Newest | Votes
0
votes
Mariia Zaharova posted this 02 November 2021

Hello Matthew,

 

Thank you for contacting us.

 

Yes, it is possible via implementing the Token authentication type. NOTE: you should obtain an access token via any tool, e.g. Postman, and use it as a password in your REST connection (if necessary, with a prefix).

Generally, when authorizing with a token obtained through OAuth 2.0, you need to pass it to Headers in the form of an Authorization tag:

 

 

image

 

We are sending you an example of metadata for REST connection with such authorization type, please check your Inbox.

The steps you should follow:

1) Create a new REST connection.

2) Set Authentication to Token.

3) Obtain an access token and specify it as a Password.

4) Specify metadata based on the example we sent you.

 

If you encounter any issues, please let us know.

 

Best regards,

Mariia

0
votes
Matthew Colley posted this 03 November 2021

Hello Mariia,

Thanks for this. Is there a way of doing it in Skyvia i.e. have a connector gets the access taoken and the ability to have another connector that can use that token? 

For example, if an API provides an access token that is only valid for an hour, does that mean we would currently have to get teh access token outside of Skyvia and then manually change the connector in SKyvia to have the password as the access token after every hour?

 

Thanks,

Mat

0
votes
Mariia Zaharova posted this 04 November 2021

Hello Mat,

 

Is there a way of doing it in Skyvia i.e. have a connector gets the access taoken and the ability to have another connector that can use that token?

Unfortunately, not.

 

 if an API provides an access token that is only valid for an hour, does that mean we would currently have to get teh access token outside of Skyvia and then manually change the connector in SKyvia to have the password as the access token after every hour?

Yes, exactly.

Currently, there is no other way to implement this in Skyvia.

 

Best regards,

Mariia

 

Close