Commit Graph

9 Commits

Author SHA1 Message Date
patrick brisbin
937ad572a3 Update to LTS-9.5 and hoauth2 1.3.0
The largest changes were around the hoauth2 interface:

The OAuth2 type replaced all of its ByteString fields with either Text
or URI. This is a huge improvement. The fields that are now Text are the
type we had them in anyway. The fields that are now URI are type safe
and easier to manipulate. For example, we were doing very unsafe query
string manipulations looking for raw ? or & values, but now we can work
with tuples in a well-typed property.

Additionally the AccessToken type was upgraded to OAuth2Token with an
accessToken field, and the simple Either ByteString a results were
replaced by a real OAuth2Error type. This required changes to our
InvalidProfileResponse mechanism to support.

To make working with uri-bytestring more convenient, an Extension
library was added with some useful instances and helper functions. This
library may be upstreamed at some point.
2017-10-18 17:21:47 -04:00
Andrew Darqui
64b65ca4c6
Properly handle empty credsExtra fields
Marks "location" as Maybe in GitHub responses. Without this, users could
experience an InvalidProfileResponse error when missing.

Also fixes cases where fields were Maybe, but the (.:?) combinator was
not being used in the parser.
2016-06-24 11:41:08 -04:00
patrick brisbin
6e904f1be3
Tweak whitespace and alignment 2015-06-25 16:00:43 -04:00
patrick brisbin
c54b2c7ba1
Update haddocks for Google module 2015-06-25 16:00:30 -04:00
Santiago Saavedra
8fa938d7ea Allow email to be used as an identifier of this module 2015-06-23 20:28:18 +02:00
Santiago Saavedra
1e40d18a09 Fix a linting warning 2015-06-09 17:04:23 +02:00
Santiago Saavedra
192dde89af Add Google OAuth provider 2015-06-07 18:23:33 +02:00
patrick brisbin
085538be7b
Remove Yesod.Auth.OAuth2.Google.hs
This functionality is available in yesod-auth, in the
Yesod.Auth.GoogleEmail2 module.

Resolves #18
2015-03-24 17:53:17 -04: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