- Log in
- Retrieve API key
- Using API key request token with next url:
- Set web.config's TrelloApiKey and TrelloToken app settings
- Integration complete
- Enable the Drive API
- Go to the Google Developers Console
- Select a project, or create a new one
- In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Drive API.
- Register client
- In your project menu on the left, select APIs & auth / Credentials
- Press Create new Client ID
- Select Web application
- Fill consent info
- Authorized JavaScript origins: SITE_URL (e.g. http://localhost:8000)
- Authorized redirect URIs: SITE_URL/AuthCallback/IndexAsync (e.g. http://localhost:8000/AuthCallback/IndexAsync)
- Set web.config's GoogleClientId and GoogleClientSecret app settings
- Request refresh token
- Log in google account with Drive
- Open web application and go to SITE_URL/admin/requestrefreshtoken (e.g. http://localhost:8000/admin/requestrefreshtoken)
- Permit access for application to the Google Drive
- Copy refresh token to web.config's GoogleRefreshToken app setting
- Integration complete
In order to rerequest refresh token you need to disconnect application from Drive first.