APIs & Integrations

stominari
Participant

Best practices for authenticating to hubDB from external apps

SOLVE

Hello. I am posting for the first time.

 

I would like to consult about API authentication method.
I'm trying to develop a batch process that accesses every hour to synchronize HubDB with an external database. In that case, the following three points can be considered as authentication methods, but are there only options? Or is there a better way?

 

1. API Key
This is scheduled to be abolished in 2022/11, so NG


2.Private APP AccessToken
NG because scope cannot be granted for HubDB


3.oauth2
AccessToken is manually acquired for the first time, and after that the expiration date expires after a certain period of time, so Use RefreshToken to reacquire the token periodically. If the process is interrupted for some reason, it is necessary to manually obtain the AccessToken again.

 

Thank you.

0 Upvotes
1 Accepted solution
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Best practices for authenticating to hubDB from external apps

SOLVE

Hi @stominari ,

 

I would advise a private app token, and I am sure you can set the right scope for HubDB, cause I've been using it for a while



Did my answer solve your issue? Help the community by marking it as the solution.

View solution in original post

0 Upvotes
2 Replies 2
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Best practices for authenticating to hubDB from external apps

SOLVE

Hi @stominari ,

 

I would advise a private app token, and I am sure you can set the right scope for HubDB, cause I've been using it for a while



Did my answer solve your issue? Help the community by marking it as the solution.
0 Upvotes
stominari
Participant

Best practices for authenticating to hubDB from external apps

SOLVE

Hi @Teun ,

 

Thank you for your response!
i will try it with private app.

 

0 Upvotes