Commit Graph

105 Commits

Author SHA1 Message Date
patrick brisbin
9b028535bd
Add potential, currently non-functioning tests
Approach so far:

The SpecHelper sets up an example App type which should (theoretically)
be enough to get some fake requests and responses going, as in any
yesod-test-based suite.

The spec then tries to build an example plugin and make assertions on
how it dispatches. This is currently falling down on subsite-related
type errors (see commented attempts).

Another potential direction is to define the YesodAuth instance for App
to specify authPlugins built using the library. With that, we might be
able to create specs using yesod-test that exercise aspects of the
plugins in an indirect way, but enough to make useful assertions.
2016-01-04 13:02:09 -05:00
silky
c2794f4040
Add user location
Fixes #49.
2016-01-04 12:34:35 -05:00
patrick brisbin
4317119944
Replace Travis with Circle
We do lose some coverage here. Rather than confirming we build across a
slew of GHC versions, the sdist succeeds, etc, we just run the test
suite against the Stackage snapshot configured. Stackage snapshots is
the direction Haskell is moving, so I think this is an acceptable
simplification.
2016-01-03 10:39:26 -05:00
patrick brisbin
51061fa148
Add stack support
Required upping the cabal lower-bound, which is, I think,
un-controversial since 1.8 is still pretty low.
2016-01-03 10:37:52 -05:00
patrick brisbin
3c24e0ff07
Add basic testing infrastructure
What sort of tests we'll be able to add is yet to be figured out, but
this at least puts a no-op, hspec-based testing target in place.
2016-01-03 10:36:52 -05:00
silky
7354c36e13
Nicer error message when 'code' field missing
Fixes #42
2015-12-07 14:06:58 -05:00
silky
6c16a7458d
Fix source repo link 2015-12-07 14:02:43 -05:00
patrick brisbin
bdc81341e5
Version bump 2015-12-05 00:52:23 -05:00
patrick brisbin
ad561a09d6
Append the state query parameter correctly
If the endpoint URL doesn't yet have any query parameters, this code
would construct an invalid URL by appending `&state=` rather than
`?state=`. We now correctly append `?state=` or `&state=` depending on
the URL already containing a `?` character.

Fixes #44

This is a "good enough" solution for the moment, done for ease of
implementation and speed of delivery. An eventual better solution would
be to use a URL-parsing and constructing library to parse the existing
endpoint, append parameter tuples, and re-construct a new URL.

Restructuring the data types so we start handling real URL and
QueryParam values instead of ByteStrings would also be an option, though
we're a little cornered by the Yesod.Auth.OAuth interface.
2015-11-28 11:42:05 -05:00
patrick brisbin
4afaba6645
Version bump 2015-10-06 23:49:17 -04:00
patrick brisbin
5784f724ba
Bump upper bound on vector to <11
Fixes #40
2015-10-02 21:04:56 -04:00
Brian Schroeder
d3c60bf47c Switch to newer Nylas API endpoint 2015-08-20 15:32:32 -04:00
patrick brisbin
43d15d8478
Version bump 2015-08-12 09:11:33 -04:00
Brian Schroeder
8af444ddb2
Rearrange argument order 2015-08-12 09:08:41 -04:00
Brian Schroeder
62e4260f5c
Wrap lines to 80 characters 2015-08-12 09:08:41 -04:00
Brian Schroeder
815d443464
Implement Nylas provider 2015-08-12 09:08:41 -04:00
Luke Randall
ab71e1be4e Bump upper bounds on aeson 2015-08-12 11:07:15 +02:00
pat brisbin
a4f9dc91f5 Merge pull request #34 from thoughtbot/pb-fixes
Prep for release after Eve Online merge
2015-07-22 12:03:19 -04:00
Stefan Dresselhaus
a6fc5ab03d
Add charId to credsExtra 2015-07-22 12:02:15 -04:00
Stefan Dresselhaus
5dcfbea1a0
Add accessToken to credsExtra 2015-07-22 12:02:01 -04:00
patrick brisbin
f3a74cd4b6
Entirely remove unused fields 2015-07-01 11:46:48 -04:00
patrick brisbin
a8396dddf0
Fixes to EveOnline plugin
- Fix invalid data declaration
- Fix -Wall compilation warnings
  - Unused imports
  - Unused functions
  - Unused arguments
  - Shadowed function name
- Incorporate plain link into WidgetType, remove Maybe
- Use only one function, always accept WidgetType
2015-06-29 10:44:11 -04:00
patrick brisbin
a3d8a6cdd5
Add/fix documentation, change argument order
- Document the difference between widget and non-widget functions
- Pass the widget as the first argument to take advantage of partial
  application
2015-06-29 10:42:11 -04:00
pat brisbin
023759cebb Merge pull request #33 from Drezil/master
Added EVE-Online SSO, support custom login widgets
2015-06-29 10:10:55 -04:00
Stefan Dresselhaus
ce98f1ba4e got rid of maybe 2015-06-28 18:16:02 +02:00
Stefan Dresselhaus
77db081d6c changed image-display to widget-display 2015-06-28 18:00:18 +02:00
Stefan Dresselhaus
abd11594d2 indentation to match standards 2015-06-28 17:26:27 +02:00
Stefan Dresselhaus
345bc3e0b0 reverted version bump, removed dependency on time 2015-06-28 17:17:21 +02:00
Stefan Dresselhaus
38ad5b66a8 fixed messup in .cabal 2015-06-28 00:28:51 +02:00
Stefan Dresselhaus
b9d9b51a6c Added EVE-Online SSO and made it possible for plugins to use images instead of text-links to login 2015-06-28 00:22:14 +02:00
patrick brisbin
7613eb5297
Version bump 2015-06-25 17:47:43 -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
pat brisbin
b2e698db06 Merge pull request #32 from ssaavedra/master
Add Google OAuth provider
2015-06-25 15:27:14 -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
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