Prepare authorization information (for Oauth2.0)
When you want to prepare authorization information for using another cloud service, you can create the information as an Auth resource.
In HULFT Square, authorization information may be required when you perform data integration with other services using APIs. The following two types of Auth resources can be created:
-
OAuth 2.0
-
Open ID Connect 1.0
Description
This scenario describes the procedure to create an Auth resource used to access Google Drive via OAuth 2.0. In the resource creation wizard, you can test communication with a counterpart using the authorization information you set.
You need to provide the following information including the OAuth 2.0 credentials which you created for Google services:
-
Client ID
-
Client secret
-
Redirect URI
Procedures
-
Select
> HULFT INTEGRATE > Connections.
-
On the Connections page, select Add New.
-
In step Type on the Connections > Add New page, enter OAuth in the search box.
= Remarks =You can select a connector from the connector list to narrow down resource types.
-
From the Type list, select OAuth 2.0 authentication, and then select Next.
-
In step General, set the fields related to Auth resources as shown below, and then select Next.
Field name
Setting (example)
Name
OAuth 2.0 authentication setting
Workspace
Personal
Description
(Optional)
-
In step Settings, set the following information.
Field name
Setting (example)
Client ID
Set the client ID obtained from the Google API Console.
Client secret
Set the client secret obtained from the Google API Console.
Redirect URI
https://app.square.hulft.com/connections/oauth2/callback
(Set the redirect URI that was specified when credentials were created.)
NoteThe redirect URI has been changed as of September 24, 2023. The previous URI will be available for use until March 31, 2024. Change the settings to the new URI by then.
Authorization endpoint
https://accounts.google.com/o/oauth2/v2/auth
Token endpoint
https://www.googleapis.com/oauth2/v4/token
Scope
https://www.googleapis.com/auth/drive.file
Client authentication method
client_secret_basic
Detail settings/Additional parameters
Add the following keys and values:
Key: access_type
Value: offline
Key: prompt
Value: consent
-
Select Authorize.
An access request is sent to the authorization endpoint.
-
On the Sign in page of Google Accounts, log in or choose the target account.
-
On the Sign in with Google page, read the message and description, and then select Continue.
-
When the dialog that displays the message "authorization succeeds" appears, select OK.
-
Select Next.
-
-
In step Profiles, select a profile.
= Remarks =If you select a profile, the authentication information is registered to the profile. The profile can be used to switch the resource settings.
-
In step Summary, confirm that the settings are correct, and then select Finish.