OAuthAccessToken Parameter (Connect-MySQL Cmdlet)
A token received after authentication to the OAuth network, granting the user access. The access token is used in place of the user's login ID and password, which stay on the server.
Syntax
Connect-MySQL -OAuthAccessToken string
Data Type
cstr
Default Value
""
Remarks
The OAuth access token has a server-dependent timeout, limiting user access. This is set using the OAuthExpiresIn property. However, it can be reissued between requests to keep access alive as long as the user keeps working.
If InitiateOAuth is set to REFRESH, we recommend that you also set both OAuthExpiresIn and OAuthTokenTimestamp. The cmdlet uses these properties to determine when the token expires so it can refresh most efficiently.
If OAuthExpiresIn and OAuthTokenTimestamp are not specified, the cmdlet refreshes the token immediately.