Skip to content

Add OAuth Capability for access_type=offline Parameter in OAuth Config File #1262

@LifeRyuto

Description

@LifeRyuto

Is your feature request related to a problem? Please describe.
When using Google as the Identity Provider (IdP) in the Tableau Connector Plugin, it is necessary to manually add the access_type=offline parameter to the authUri to receive a refresh token. This is inconvenient and inconsistent with other OAuth capabilities, such as OAUTH_CAP_REQUIRES_PROMPT_CONSENT, which allows parameters to be added via configuration.

Describe the solution you'd like
I propose adding a new OAuth capability, such as OAUTH_CAP_REQUIRES_ACCESS_TYPE_OFFLINE, that can be specified in the OAuth config file. This capability would automatically append access_type=offline to the authUri during authentication with Google.

Example:

<entry>  
  <key>OAUTH_CAP_REQUIRES_ACCESS_TYPE_OFFLINE</key>  
  <value>true</value>  
</entry>  

Describe alternatives you've considered

  1. Using the following URL format directly in the authUri:
    https://accounts.google.com/o/oauth2/v2/auth?access_type=offline
    

About You
Name: Ryuto Nakayama
Company: Salesforce/Tableau

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions