public class StravaClient extends OAuth20Client<StravaProfile>
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/
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
logger
Constructor and Description |
---|
StravaClient() |
StravaClient(String key,
String secret) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit()
Initialize the client.
|
String |
getApprovalPrompt() |
String |
getScope() |
void |
setApprovalPrompt(String approvalPrompt) |
void |
setScope(String scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toString
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolver
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
init
protected void clientInit()
IndirectClient
clientInit
in class OAuth20Client<StravaProfile>
public String getApprovalPrompt()
public void setApprovalPrompt(String approvalPrompt)
public String getScope()
public void setScope(String scope)
Copyright © 2019. All rights reserved.