03-02-2018 01:52 - edited 03-02-2018 01:52
03-02-2018 01:52 - edited 03-02-2018 01:52
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.
03-02-2018 10:36
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.
03-02-2018 10:36
<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'}}
/>
03-01-2018 05:06
03-01-2018 05:06
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 Answer03-02-2018 00:12
03-02-2018 00:12
is 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 Answer03-02-2018 10:36
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.
03-02-2018 10:36
<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'}}
/>
03-03-2018 01:23
03-03-2018 01:23
Thanks for the reply. This was exactly what i was looking for. Works now like a charm. Will this be official, also in the docs?