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
e10589a954
Version bump
2015-04-13 17:50:03 -04:00
patrick brisbin
5c5f94dba4
Add Twitter
2015-04-13 17:10:11 -04:00
patrick brisbin
2d3d1d2a8e
Add fromProfileResponse
...
Handles the common case of fetching profile information from a single
JSON endpoint. Throws InvalidProfileResponse if JSON parsing fails.
2015-04-13 17:09:06 -04:00
patrick brisbin
6d547b157c
Add a better .travis.yml
...
- Runs check and sdist, in addition to build/test
- Based on https://github.com/hvr/multi-ghc-travis
- Tests various combinations of Cabal and GHC (including 7.10)
- Tests HEAD versions, but allows failure there
2015-04-13 11:19:16 -04:00
patrick brisbin
c6fbb15a20
0.1.0 bump, cabal file fixes
2015-04-08 11:19:25 -04:00
patrick brisbin
829d502563
Add travis.yml
2015-04-07 12:56:43 -04:00
patrick brisbin
ad0e354b2b
Support GHC 7.10
...
- Conditionally import Control.Applicative
- Enable FlexibleContexts
2015-04-07 12:56:43 -04:00
patrick brisbin
44a83b6c6a
Remove implicit support for GHC 7.4
...
- Transitive dependency iproute will not build on 7.4.1
2015-04-07 12:56:04 -04:00
patrick brisbin
fcba0b405a
Remove support for GHC 6
...
- This was behind a default-true flag
- We have no conditionals internally
2015-04-07 12:56:04 -04:00
patrick brisbin
0b0e6c179d
Use consistent style throughout project
...
- Alphabetize imports
- Place qualified imports separate and last
- BL for ByteString.Lazy
- Don't align tokens in tuple lists or record assignments
- Two-space indent for where keyword
- Use record syntax for Creds
- Break before operators in Applicative expressions
- Consistent whitespace throughout
Resolves #19
2015-03-25 16:30:15 -04:00
patrick brisbin
029122f662
Learn rebranded as Upcase
2015-03-24 17:56:59 -04: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
270d1b2eec
Formatting
2015-03-24 17:50:24 -04:00
jprider63
bc320b1397
Move state token handling generic oauth2Plugin
...
Resolves #23
2015-03-24 17:26:35 -04:00
patrick brisbin
d840af3501
Version bump
2015-01-07 14:03:50 -05:00
pat brisbin
b604577aa2
Merge pull request #21 from snoyberg/master
...
Allow transformers 0.4
2015-01-07 13:30:38 -05:00
Michael Snoyman
9524778ae7
Allow transformers 0.4
2015-01-07 17:56:02 +02:00
patrick brisbin
784025d79d
Version bump
2014-11-07 14:15:06 -05:00
pat brisbin
95afd6f8dd
Merge pull request #15 from gfontenot/master
...
Bump aeson version requirement
2014-10-10 14:37:35 -04:00
Gordon Fontenot
34db7433b7
Bump aeson version requirement
...
Yesod 1.4 uses Aeson 0.8.0.1, which makes this library incompatible.
Bumping this to 0.9 matches Yesod's requirements.
2014-10-06 18:50:24 -04:00
pat brisbin
85400ab0a9
Merge pull request #14 from docmunch/yesod-1.4
...
Bump version bounds to allow yesod 1.4
2014-10-02 14:14:34 -04:00
Greg Weber
5cc9f602ce
bump version bounds to allow yesod 1.4
2014-09-30 11:05:07 -07:00
patrick brisbin
646d2b246b
Whitespace
2014-09-22 15:02:32 -04:00
patrick brisbin
a5c691512e
Update README for new usage
2014-09-22 15:02:28 -04:00
patrick brisbin
b5ce151f03
Version bump
2014-09-22 09:24:45 -04:00
pat brisbin
a4623d90c6
Merge pull request #13 from benekastah/master
...
Add Yesod.Auth.OAuth2.Spotify
2014-09-22 09:24:05 -04:00
Paul Harper
261cbc30aa
Scopes can now be passed in, most of the spotify user object is returned in the credentials
2014-09-21 23:42:13 -07:00
Paul Harper
04a5aad6c1
misc gitignore updates
2014-09-20 23:53:46 -07:00
Paul Harper
a1ff864b4e
Added Spotify as a supported OAuth2 backend
2014-09-20 23:52:23 -07:00
patrick brisbin
46b0d1f4a9
Version bump
2014-09-18 11:28:13 -04:00
pat brisbin
66054fbb54
Merge pull request #12 from skade/optional-name
...
Make Github name optional
2014-09-18 11:27:39 -04:00
Florian Gilcher
81ece8072f
Make Github name optional
...
The github API returns no name field if the user has given none (and
only goes by their user handle). For that reason, make the name field
optional.
2014-09-18 11:40:12 +02:00
patrick brisbin
d2e384c1aa
Version bump
2014-09-17 22:19:56 -04:00
pat brisbin
1ab10c3dae
Merge pull request #11 from skade/expose-github-scope
...
Expose auth2GithubScoped
2014-09-17 22:19:20 -04:00
Florian Gilcher
3eeae3293d
Expose auth2GithubScoped
...
Expose auth2GithubScoped, allowing users to set the scopes themselves.
2014-09-17 22:31:39 +02:00
patrick brisbin
4b2d7e333c
Larger version bump
2014-09-13 16:47:04 -04:00
patrick brisbin
eb5f9488f8
Address compiler warnings
...
- user was defined by never used in the no mails case
- The result of apDispatch is discarded
2014-09-13 16:45:36 -04:00
pat brisbin
3b2aeed871
Merge pull request #10 from freiric/github-provider
...
Github provider
2014-09-13 16:44:13 -04:00
Freiric Barral
8046f4d8cc
hardcode the scope to user:email (if more info is needed the code will anyway have to be changed to include more queries)
2014-08-31 23:11:41 +02:00
Freiric Barral
a992fdb6fa
fetch github email in a second query to https://api.github.com/user/emails (the query to https://api.github.com/user return a null in the email field)
2014-08-31 23:11:41 +02:00
Freiric Barral
e34156dcc3
bump version
2014-08-31 23:11:41 +02:00
Freiric Barral
4fdd311d4b
correct typo in the authentication query to github
2014-08-31 23:11:36 +02:00
Freiric Barral
d6fe3090d7
remove redundant bracket
2014-08-29 21:04:45 +02:00
Freiric Barral
165713c350
use tls manager argument in fetchGithubProfile (introduced in 'Version upgrade (hoauth2 0.4.1)'.)
2014-08-29 21:04:21 +02:00
Freiric Barral
ec80c8f75e
fix cabal file: take into account the split of network from version 2.6,
...
and avoid authenticate 1.3.2.6 which gave the following strange error:
...
Building authenticate-1.3.2.6...
Preprocessing library authenticate-1.3.2.6...
[1 of 9] Compiling OpenId2.XRDS ( OpenId2/XRDS.hs, dist/dist-sandbox-a1429708/build/OpenId2/XRDS.o )
[2 of 9] Compiling Web.Authenticate.OpenId.Providers ( Web/Authenticate/OpenId/Providers.hs, dist/dist-sandbox-a1429708/build/Web/Authenticate/OpenId/Providers.o )
[3 of 9] Compiling Web.Authenticate.BrowserId ( Web/Authenticate/BrowserId.hs, dist/dist-sandbox-a1429708/build/Web/Authenticate/BrowserId.o )
Web/Authenticate/BrowserId.hs:15:22:
Module ‘Data.Conduit’ does not export ‘MonadBaseControl’
Web/Authenticate/BrowserId.hs:15:40:
Module ‘Data.Conduit’ does not export ‘MonadResource’
Failed to install authenticate-1.3.2.6
2014-08-29 20:57:39 +02:00
Calen Pennington
7c002e167c
Add a github OAuth2 provider
2014-08-29 20:57:39 +02:00
Calen Pennington
393334370c
Update to hauth2 0.4.*
2014-08-29 20:57:34 +02:00