Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LifeRyuto opened this issue Oct 21, 2024 · 0 comments

Comments

@LifeRyuto
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@LifeRyuto and others