lab 1: added redirect to the authorization URL prepared for Foursquare.
lab 1: Added OAuthServiceManager to keep a registry of constructed
OAuthServices keyed by the api ID.
lab 1: Instrumented OAuthController to get the access token once a
request token / code / verifier is received.
lab 1: Changed OAuthController and AuthorizationTokenManager to store
Token objects instead of plain Strings. Might accommodate using OAuth
1.0a APIs without any changes.
lab 1: Added dependency on Jackson and added persistence to the
AuthorizationTokenManager for writing out the acquired access tokens for
a user.
lab 1: Added code to make a request to foursquare for a user's checkin
data. Will make display prettier with javascript.
lab 1: added jquery 1.9.1 javascript lib and set up a simple js alert in
profile.jsp to prove that it is being served by the server.
lab 1: moved profile js function to profile.js.
lab 1: added javascript to handle rendering the check in details.
Handles as many checkins as are returned.
lab 1: Added handlebars-1.0.rc.2.js for handling template rendering of
checkin details.
lab 1: added profile.css with the hidden class, hid the checkin data
panel on the profile page, and added a break tag to the checkin details
template so that there will be space in between entries.
lab 1: Added authtokens.json so that the file can be found by the
Jackson ObjectMapper. Updated UserController to limit the number of
requested checkins to 1 when the logged in user is not the owner of the
profile being displayed.
lab 1: refactored profile.js to make the secondsToDate helper a free
standing function.
lab 1: put secondsToDateHelper in a helpers context/namespace object.
lab 1: In profile.js added and entryClassHelper that determines whether
the entry is even or odd. Added a call to the helper in profile.jsp.
Added odd background color style in profile.css.
lab 1: extracted the API client configuration into a json file and read
the file in in OAuthServiceManager.
lab 1: made the OAuthServiceManager keyed by both api and username since
it needs to have the username to construct the callback url properly.
Updated calls to OAuthServiceManager and changed the api signiture for
registerOAuthCode in OAuthController.