Update google token endpoint to v4
This commit is contained in:
parent
bfbe7ec15d
commit
db7009531a
|
|
@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
|
||||
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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
{
|
||||
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
|
||||
{
|
||||
|
|
@ -489,7 +489,7 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
{
|
||||
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
|
||||
{
|
||||
|
|
@ -569,7 +569,7 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
{
|
||||
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
|
||||
{
|
||||
|
|
@ -659,7 +659,7 @@ namespace Microsoft.AspNetCore.Authentication.Google
|
|||
{
|
||||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue