Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Update google token endpoint to v4 #829

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class GoogleDefaults

public static readonly string AuthorizationEndpoint = "https://accounts.google.com/o/oauth2/auth";

public static readonly string TokenEndpoint = "https://www.googleapis.com/oauth2/v3/token";
public static readonly string TokenEndpoint = "https://www.googleapis.com/oauth2/v4/token";

public static readonly string UserInformationEndpoint = "https://www.googleapis.com/plus/v1/people/me";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public async Task ReplyPathWillAuthenticateValidAuthorizeCodeAndState(string cla
{
Sender = req =>
{
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v3/token")
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v4/token")
{
return ReturnJsonResponse(new
{
Expand Down Expand Up @@ -489,7 +489,7 @@ public async Task AuthenticatedEventCanGetRefreshToken()
{
Sender = req =>
{
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v3/token")
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v4/token")
{
return ReturnJsonResponse(new
{
Expand Down Expand Up @@ -569,7 +569,7 @@ public async Task NullRedirectUriWillRedirectToSlash()
{
Sender = req =>
{
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v3/token")
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v4/token")
{
return ReturnJsonResponse(new
{
Expand Down Expand Up @@ -659,7 +659,7 @@ public async Task ValidateAuthenticatedContext()
{
Sender = req =>
{
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v3/token")
if (req.RequestUri.AbsoluteUri == "https://www.googleapis.com/oauth2/v4/token")
{
return ReturnJsonResponse(new
{
Expand Down