Commit Graph

13 Commits

Author SHA1 Message Date
patrick brisbin
a2647e0ada
Reformat data declaration and comment
- Prevents haddock parse error
2014-08-19 17:33:33 -04:00
Kayo Phoenix
d9a41130b0 Version upgrade (hoauth2 0.4.1). 2014-08-13 11:02:46 +06:00
Max Cantor (MBPr)
267bef2c9a relaxed bounds for ghc 781 2014-04-09 16:59:39 -07:00
patrick brisbin
4354dc630a Replace call to error with throwIO. Fixes #2
* error would crash the server
* IO exception should result in a 500
2014-02-21 12:25:31 -05:00
patrick brisbin
257968f067 Fix documentation error 2014-02-21 11:00:57 -05:00
patrick brisbin
4b6cb31ba9 Typos 2014-02-15 16:05:59 -05:00
patrick brisbin
7536e7f25f Refactor to separate modules, document things
* oauth2 functions now handle the getCreds argument themselves
* Learn is updated to do the Right Thing
* Google is unfinished
2014-02-15 15:56:15 -05:00
patrick brisbin
1ea281b4b1 Minor refactor 2014-02-15 15:23:58 -05:00
patrick brisbin
4ec390e32a Use Network.OAuth.OAuth2
* Provides basically the same interface
* Re-export it for making additional requests
2014-02-15 15:11:03 -05:00
patrick brisbin
434e2bc092 Update dependencies, make it work, address -Wall
Housekeeping:

* Use newer http-conduit (Request m becomes Request)
* Increase upper bound on aeson
* Fix whitespace, remove unfinished function
* Add type signatures and some comments
* Remove unused imports

Fixes:

* ByteString needs an orphan JSON instance so AccessToken can have one.
  I'm not sure if there's a way around this.
* redirect takes a Text, not a ByteString
* dispatch for "callback" should handle setting the credentials

Additions

* oauth2Learn for authenticating against learn.thoughtbot.com
2014-02-15 14:44:01 -05:00
Tom Streller
6d3bd0f281 Add json request 2013-07-15 11:43:28 +02:00
Tom Streller
d966f17704 require getCreds method 2013-07-14 14:14:31 +02:00
Tom Streller
3457bfd3a0 Initial import 2013-07-14 11:11:44 +02:00