Package com.ringcentral.definitions
Class GetTokenRequest
java.lang.Object
com.ringcentral.definitions.GetTokenRequest
Token endpoint request parameters used in the "Guest" authorization flow
with the `guest` grant type
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccess token lifetime in seconds Maximum: 3600 Minimum: 600 Format: int32 Default: 3600RingCentral internal account ID RequiredFor `urn:ietf:params:oauth:grant-type:jwt-bearer` or `partner_jwt` grant types only.RingCentral Brand identifier.Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types, as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2).Client assertion type for the `client_secret_jwt` or `private_key_jwt` client authentication types, as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2).The registered identifier of a client application.For `otp` grant type only.For `authorization_code` grant type only.For `urn:ietf:params:oauth:grant-type:device_code` grant type only.The unique identifier of a client application instance.For `password` grant type only.Grant type Required Enum: authorization_code, urn:ietf:params:oauth:grant-type:jwt-bearer, partner_jwt, refresh_token, password, ivr_pin, urn:ietf:params:oauth:grant-type:device_code, client_credentials, otp, guestFor `ivr_pin` grant type only.The ID of the account on RingCentral partner's side RequiredFor `password` grant type only.IVR pin for pin-based authentication.For `authorization_code` grant type only.For `refresh_token` grant type only.Refresh token lifetime in seconds Maximum: 2592000 Format: int32 Default: 604800Resource URL for the guest access.Resource type for the guest access.The list of application permissions (OAuth scopes) requested.For `password` grant type only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess_token_ttl(Long access_token_ttl) account_id(String account_id) client_assertion(String client_assertion) client_assertion_type(String client_assertion_type) code_verifier(String code_verifier) device_code(String device_code) endpoint_id(String endpoint_id) grant_type(String grant_type) partner_account_id(String partner_account_id) redirect_uri(String redirect_uri) refresh_token(String refresh_token) refresh_token_ttl(Long refresh_token_ttl) resource_type(String resource_type)
-
Field Details
-
client_id
The registered identifier of a client application. Used to identify a client ONLY if the client authentication is not required and corresponding credentials are not provided with this request Example: AZwEVwGEcfGet2PCouA7K6 -
client_assertion_type
Client assertion type for the `client_secret_jwt` or `private_key_jwt` client authentication types, as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2). This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types Enum: urn:ietf:params:oauth:client-assertion-type:jwt-bearer -
client_assertion
Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types, as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2). This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types -
scope
The list of application permissions (OAuth scopes) requested. By default, it includes all permissions configured on the client application registration -
endpoint_id
The unique identifier of a client application instance. If not specified, the derived or auto-generated value will be used -
access_token_ttl
Access token lifetime in seconds Maximum: 3600 Minimum: 600 Format: int32 Default: 3600 -
refresh_token_ttl
Refresh token lifetime in seconds Maximum: 2592000 Format: int32 Default: 604800 -
grant_type
Grant type Required Enum: authorization_code, urn:ietf:params:oauth:grant-type:jwt-bearer, partner_jwt, refresh_token, password, ivr_pin, urn:ietf:params:oauth:grant-type:device_code, client_credentials, otp, guest -
code
For `otp` grant type only. One-time password code Required -
redirect_uri
For `authorization_code` grant type only. This is a callback URI which determines where the response is sent. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration Format: uri -
code_verifier
For `authorization_code` grant type only. The code verifier as defined by the PKCE specification - [RFC-7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://datatracker.ietf.org/doc/html/rfc7636) -
assertion
For `urn:ietf:params:oauth:grant-type:jwt-bearer` or `partner_jwt` grant types only. Authorization grant assertion (JWT) as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.1). Required -
refresh_token
For `refresh_token` grant type only. Previously issued refresh token. Required -
username
For `password` grant type only. User login name: email or phone number in E.164 format Required -
password
For `password` grant type only. User's password Required Format: password -
extension
For `password` grant type only. Optional. Extension short number. If a company number is specified as a username, and extension is not specified, the server will attempt to authenticate client as main company administratorDEPRECATED: use extension number embedded into username string like `+16501234567*101`
-
pin
IVR pin for pin-based authentication.DEPRECATED: use a dedicated `ivr_pin` grant type instead
-
ivr_pin
For `ivr_pin` grant type only. User's IVR pin. Required -
device_code
For `urn:ietf:params:oauth:grant-type:device_code` grant type only. The device verification code as defined by [RFC-8628](https://datatracker.ietf.org/doc/html/rfc8628#section-3.4) Required -
brand_id
RingCentral Brand identifier. Required -
account_id
RingCentral internal account ID Required -
partner_account_id
The ID of the account on RingCentral partner's side Required -
resource_type
Resource type for the guest access. Required -
resource
Resource URL for the guest access. Required
-
-
Constructor Details
-
GetTokenRequest
public GetTokenRequest()
-
-
Method Details
-
client_id
-
client_assertion_type
-
client_assertion
-
scope
-
endpoint_id
-
access_token_ttl
-
refresh_token_ttl
-
grant_type
-
code
-
redirect_uri
-
code_verifier
-
assertion
-
refresh_token
-
username
-
password
-
extension
-
pin
-
ivr_pin
-
device_code
-
brand_id
-
account_id
-
partner_account_id
-
resource_type
-
resource
-