Cmdlets for JSON

Build 25.0.9434

OAuthPasswordGrantMode Parameter (Connect-JSON Cmdlet)

Specifies how the OAuth Client ID and Client Secret are sent to the authorization server.

Syntax

Connect-JSON -OAuthPasswordGrantMode string

Possible Values

Post, Basic

Data Type

cstr

Default Value

"Post"

Remarks

The OAuth RFC provides two methods of passing the OAuthClientId and OAuthClientSecret:

  • POST: Sends the OAuthClientId and OAuthClientSecret in the POST body of the token request. This is the most commonly supported method and works with most OAuth flows.
  • BASIC: Sends the OAuthClientId and OAuthClientSecret in the HTTP Authorization header using Basic authentication. Some OAuth servers require this method for added compliance or security.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434