public class StravaClient extends OAuth20Client
OAuth20Client for Strava.
Use the key as the client_id and secret as the client_secret, both provided by Strava at: https://www.strava.com/settings/api
Set approvalPrompt to "force" if you want to force the authorization dialog to always display on Strava, otherwise let it to "auto" (default value).
The scope is a comma delimited string of ‘view_private’ and/or ‘write’, leave blank for read-only permissions.
More info at: http://strava.github.io/api/
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
StravaClient() |
StravaClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
String |
getApprovalPrompt() |
String |
getScope() |
void |
setApprovalPrompt(String approvalPrompt) |
void |
setScope(String scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectionActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitprotected void clientInit()
clientInit in class OAuth20Clientpublic String getApprovalPrompt()
public void setApprovalPrompt(String approvalPrompt)
public String getScope()
public void setScope(String scope)
Copyright © 2019. All rights reserved.