Skip to content
0:00 / 0:00

#oauth2#googlecalendarapi#asp.netmvc

Refresh And Revoke Access Token | Google Calendar Integration | MVC Application | Part - 3

The Messy Developer

1.2K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

9.2K views5 years ago1 recommendation

Web developmentSecurityHTTP, REST and GraphQLCryptography

How to refresh and revoke OAuth 2.0 access tokens when integrating Google Calendar into an MVC application.

Refresh Access Token and Revoke Access Token for Google Calendar Integration using MVC Application. Facebook Page: facebook.com/themessydeveloper Get Client Id and Client Secret: youtu.be/w6rzVKBsB3A Get Access Token and Refresh Token: youtu.be/URU0-3_eies Google Cloud Platform: console.cloud.google.com Google OAuth API Url: developers.google.com/identity/protocols/oauth2 #GoogleCalendar #APIIntegration #MVC

Why it's here

1 person recommends this

What people say. Recommended as a practical example of handling Google OAuth token refresh and revocation.

Purushotam Sahon Stack Overflow • Recommends

On “How to generate access token using refresh token through google drive API?”

Using Post call, worked for me. RestClient restClient = new RestClient(); RestRequest request = new RestRequest(); request.AddQueryParameter("client_id", "value"); request.AddQueryParameter("client_secret", "value"); request.AddQueryParameter("grant_type", "refresh_token"); request.AddQueryParameter("refresh_token", "value"); restClient.BaseUrl = new System.Uri("https://oauth2.googleapis.com/token"); restClient.Post(request); link to this video