Name | Type | Description | Notes |
---|---|---|---|
ClientId | string | The client identifier to constrain the token to. | |
ClientSecret | Pointer to NullableString | The secret associated with the client that authorizes the generation of token it's behalf. (Either the `client_secret` or the `code_verifier` is required) | [optional] |
CodeVerifier | Pointer to string | The code verifier is the the value used in the generation of the OAuth authorization request `code_challenge` property. (Either the `client_secret` or the `code_verifier` is required) | [optional] |
GrantType | Pointer to string | A suggestion to the token generation which type of credentials are being provided. | [optional] |
Username | Pointer to NullableString | When using the user password grant_type, specify the username. Authress recommends this should always be an email address. | [optional] |
Password | Pointer to NullableString | When using the user password grant_type, specify the user's password. | [optional] |
Type | Pointer to NullableString | Enables additional configuration of the grant_type. In the case of user password grant_type, set this to #, to enable the creation of users. Set this to update, force update the password associated with the user. | [optional] |
func NewOAuthTokenRequest(clientId string, ) *OAuthTokenRequest
NewOAuthTokenRequest instantiates a new OAuthTokenRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewOAuthTokenRequestWithDefaults() *OAuthTokenRequest
NewOAuthTokenRequestWithDefaults instantiates a new OAuthTokenRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *OAuthTokenRequest) GetClientId() string
GetClientId returns the ClientId field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetClientIdOk() (*string, bool)
GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetClientId(v string)
SetClientId sets ClientId field to given value.
func (o *OAuthTokenRequest) GetClientSecret() string
GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetClientSecretOk() (*string, bool)
GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetClientSecret(v string)
SetClientSecret sets ClientSecret field to given value.
func (o *OAuthTokenRequest) HasClientSecret() bool
HasClientSecret returns a boolean if a field has been set.
func (o *OAuthTokenRequest) SetClientSecretNil(b bool)
SetClientSecretNil sets the value for ClientSecret to be an explicit nil
func (o *OAuthTokenRequest) UnsetClientSecret()
UnsetClientSecret ensures that no value is present for ClientSecret, not even an explicit nil
func (o *OAuthTokenRequest) GetCodeVerifier() string
GetCodeVerifier returns the CodeVerifier field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetCodeVerifierOk() (*string, bool)
GetCodeVerifierOk returns a tuple with the CodeVerifier field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetCodeVerifier(v string)
SetCodeVerifier sets CodeVerifier field to given value.
func (o *OAuthTokenRequest) HasCodeVerifier() bool
HasCodeVerifier returns a boolean if a field has been set.
func (o *OAuthTokenRequest) GetGrantType() string
GetGrantType returns the GrantType field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetGrantTypeOk() (*string, bool)
GetGrantTypeOk returns a tuple with the GrantType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetGrantType(v string)
SetGrantType sets GrantType field to given value.
func (o *OAuthTokenRequest) HasGrantType() bool
HasGrantType returns a boolean if a field has been set.
func (o *OAuthTokenRequest) GetUsername() string
GetUsername returns the Username field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetUsernameOk() (*string, bool)
GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetUsername(v string)
SetUsername sets Username field to given value.
func (o *OAuthTokenRequest) HasUsername() bool
HasUsername returns a boolean if a field has been set.
func (o *OAuthTokenRequest) SetUsernameNil(b bool)
SetUsernameNil sets the value for Username to be an explicit nil
func (o *OAuthTokenRequest) UnsetUsername()
UnsetUsername ensures that no value is present for Username, not even an explicit nil
func (o *OAuthTokenRequest) GetPassword() string
GetPassword returns the Password field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetPasswordOk() (*string, bool)
GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetPassword(v string)
SetPassword sets Password field to given value.
func (o *OAuthTokenRequest) HasPassword() bool
HasPassword returns a boolean if a field has been set.
func (o *OAuthTokenRequest) SetPasswordNil(b bool)
SetPasswordNil sets the value for Password to be an explicit nil
func (o *OAuthTokenRequest) UnsetPassword()
UnsetPassword ensures that no value is present for Password, not even an explicit nil
func (o *OAuthTokenRequest) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *OAuthTokenRequest) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OAuthTokenRequest) SetType(v string)
SetType sets Type field to given value.
func (o *OAuthTokenRequest) HasType() bool
HasType returns a boolean if a field has been set.
func (o *OAuthTokenRequest) SetTypeNil(b bool)
SetTypeNil sets the value for Type to be an explicit nil
func (o *OAuthTokenRequest) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil