Is there a way to set custom url parameters for the oauth url in the settings?
For google oauth i need :
access_type=offline
<Oauth
settingsKey="oauth" title="OAuth Login" label="OAuth" status="Login" authorizeUrl="https://accounts.google.com/o/oauth2/v2/auth" requestTokenUrl="https://www.googleapis.com/oauth2/v4/token" clientId="11111" clientSecret="asdfxxx" scope="profile" customParameter=myvalue />
Answered! Go to the Best Answer.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
<Oauth
settingsKey="oauth"
title="Google Authentication"
label="Approve Access to Google"
status={getDisplayWebAPIStatus(props)}
authorizeUrl={CREDENTIALS.google_authorisation_url}
requestTokenUrl={CREDENTIALS.google_access_token_url}
clientId={CREDENTIALS.client_id}
clientSecret={CREDENTIALS.client_secret}
scope={CREDENTIALS.scope}
pkce="true"
oAuthParams={{
access_type : 'offline',
prompt : 'consent'}}
/>
Is there a way to get a Google Oauth refresh token? Im stuck, i only get the auth token with the settings login...
Google needs to request a access_type which is set to offline. where can i set this in the settings?
https://developers.google.com/identity/protocols/OAuth2WebServer
Best Answeris there a way to set custom url parameters for the oauth url? For the google oauth i need :
access_type=offline
<Oauth
settingsKey="oauth" title="OAuth Login" label="OAuth" status="Login" authorizeUrl="https://accounts.google.com/o/oauth2/v2/auth" requestTokenUrl="https://www.googleapis.com/oauth2/v4/token" clientId="11111" clientSecret="asdfxxx" scope="profile" customParameter=myvalue />
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
<Oauth
settingsKey="oauth"
title="Google Authentication"
label="Approve Access to Google"
status={getDisplayWebAPIStatus(props)}
authorizeUrl={CREDENTIALS.google_authorisation_url}
requestTokenUrl={CREDENTIALS.google_access_token_url}
clientId={CREDENTIALS.client_id}
clientSecret={CREDENTIALS.client_secret}
scope={CREDENTIALS.scope}
pkce="true"
oAuthParams={{
access_type : 'offline',
prompt : 'consent'}}
/>