< Back
Request-GoogleOAuth2Token
Post
NAME Request-GoogleOAuth2Token
SYNOPSIS
Requests a token for the google OAuth2 service.
SYNTAX
Request-GoogleOAuth2Token -ClientId <String> [-Persist] [-ProfileLocation <String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -Code <String> -ClientSecret <String> [-Persist] [-ProfileLocation
<String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -JWT <String> [-Persist] [-ProfileLocation <String>]
[<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -ClientSecret <String> -RefreshToken <String> [-Persist]
[-ProfileLocation <String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -ClientSecret <String> [-Persist] [-ProfileLocation <String>]
[<CommonParameters>]
DESCRIPTION
This cmdlet wraps multiple ways to retrieve an access token. It can process the following methods
1) Requesting a new authorization code and exchaning it for a token
2) Receiving a currently valid authorization code and exchanging it for a token
3) Receive a refresh token and client secret and exchange for a new access token
4) Use a cached or persisted profile indicated by the client id. If the profile has a current access token,
SYNOPSIS
Requests a token for the google OAuth2 service.
SYNTAX
Request-GoogleOAuth2Token -ClientId <String> [-Persist] [-ProfileLocation <String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -Code <String> -ClientSecret <String> [-Persist] [-ProfileLocation
<String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -JWT <String> [-Persist] [-ProfileLocation <String>]
[<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -ClientSecret <String> -RefreshToken <String> [-Persist]
[-ProfileLocation <String>] [<CommonParameters>]
Request-GoogleOAuth2Token -ClientId <String> -ClientSecret <String> [-Persist] [-ProfileLocation <String>]
[<CommonParameters>]
DESCRIPTION
This cmdlet wraps multiple ways to retrieve an access token. It can process the following methods
1) Requesting a new authorization code and exchaning it for a token
2) Receiving a currently valid authorization code and exchanging it for a token
3) Receive a refresh token and client secret and exchange for a new access token
4) Use a cached or persisted profile indicated by the client id. If the profile has a current access token,