Redirection URL

The redirection URL is set to http://site.daptin.com:8080/oauth/response in my case. site.daptin.com points to my localhost and daptin is running at port 8080. This endpoint handles the redirection from oauth2 flow.

Scope

Note that we need to access the google drive for what we are going to do (host a sub site) in this walk through. So I am using this in the scope field:

https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/drive

These are two scope . One allows access to google spreadsheets and the second one to google drive.

Clicking Submit will add the new data

Click the grey “expand” icon to go see the details of the connector

Oauth2 Token

Now I want to authenticate using this oauth connection and obtain a token to use for uploading and downloading files from Gdrive. Click the little grey expand icon to go into the details of this connection.

Note that the client secret is encrypted here. The schema of oauth_connection schema tells daptin that client_secret is an encrypted field, so original value is only in memory, never set in response to ui.