jesperfj/play-force — pull request #3 by anandbn (2012-04-15 18:20:24+00:00)
Title: getApiConfig() to allow for overrides on apiConfig

Any sub-class can override getApiConfig() and create the ApiConfig object suitably. Helps with changing parameters such as "loginEndpoint" on a per request basis.For e.g. a subclass could implement the below:

protected static ApiConfig getApiConfig(){
return new ApiConfig().setClientId(FORCE_OAUTH_KEY)
.setClientSecret(FORCE_OAUTH_SECRET)
.setRedirectURI(APP_URI+"/_auth")
.setLoginEnpoint(request.params.get("loginEndpoint"));
}