Skip to content

Commit

Permalink
added new parameter for test connectivity to generate refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
aparekh-crest committed Apr 16, 2024
1 parent dfbdddc commit 57d4f2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smtp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ def _interactive_auth_initial(self, client_id, rsh, client_secret):
'redirect_uri': app_rest_url,
"access_type": "offline"
}

if "gmail" in config[phantom.APP_JSON_SERVER]:
params["prompt"] = "consent"

if config.get('scopes'):
params['scope'] = config['scopes']

Expand Down

0 comments on commit 57d4f2c

Please sign in to comment.