Commit Graph

4261 Commits

Author SHA1 Message Date
Ryan Desfosses
c62166e67b updated deprecated settingsPort, settingsHost, settingsOnException 2015-04-13 13:34:30 -04:00
Michael Snoyman
97b6857912 Version bump 2015-04-05 16:51:12 +03:00
Michael Snoyman
f0673d84ab Merge pull request #966 from Codas/ghc-7.10.1
Make yesod-bin build on 7.10.1
2015-04-05 12:02:30 +03:00
Arne Link
91829fc82a Add support for GHC 7.10.1 2015-04-03 16:34:08 +02:00
Michael Snoyman
882956255a Better support for multiple cookie headers 2015-04-02 16:40:14 +03:00
Michael Snoyman
c2e836bf3a Some user-facing TLS info (pinging @chrisdone @DanBurton) 2015-03-31 09:30:53 +03:00
Michael Snoyman
c430bf4a91 Merge pull request #964 from DanBurton/master
Add support for https on yesod devel
2015-03-31 09:19:13 +03:00
Dan Burton
85f16d0e9f Used race_ for clarity 2015-03-30 13:10:02 -07:00
Dan Burton
6562e6067c Second reverseproxy now handles incoming https requests 2015-03-30 12:57:07 -07:00
Michael Snoyman
8fd60482a0 Fix Travis script 2015-03-30 13:55:53 +03:00
Dan Burton
2e573f440a Add a second reverse proxy for tls 2015-03-26 13:41:50 -07:00
Michael Snoyman
56d4b8c3ee Version bump 2015-03-26 14:52:36 +02:00
Michael Snoyman
e50ce7ca1e Merge branch 'master' of https://github.com/s9gf4ult/yesod 2015-03-26 14:51:14 +02:00
Aleksey Uimanov
79dc6c33b9 add lookupBasicAuth and lookupBearerAuth functions 2015-03-26 17:19:53 +05:00
Michael Snoyman
e3e5cb80eb A bit more version bumping 2015-03-24 08:54:09 +02:00
patrick brisbin
cb27424083
Version bump to 1.4.4 2015-03-23 18:01:26 -04:00
patrick brisbin
3564e1f746
Add AuthenticationResult and authenticate function
- getAuthId returns Maybe AuthId with no useful information in the
  Nothing case.
- AuthenticationResult includes whether it was a User or Server error
  (with an accompanying message) in the failure case.
- User errors are displayed back to the user and have a 401 status in
  JSON responses. Server errors are logged and a generic error message
  is presented to the user, with a 500 status in JSON responses.

Resolves #956
2015-03-23 18:01:26 -04:00
Michael Snoyman
c7d41f2395 Scaffold updates 2015-03-22 14:05:37 +02:00
Michael Snoyman
3171e2f243 Merge pull request #957 from joom/master
Added command-line args option to yesod-bin add-handler
2015-03-20 07:36:03 +02:00
Joomy Korkut
54d1c2d8a0 Added command-line args option to yesod-bin add-handler (resolves #892) 2015-03-19 09:33:04 -04:00
Michael Snoyman
e85be6f118 Use 307 redirect for cleaning paths and non-GET requests #951 2015-03-15 11:45:32 +02:00
Michael Snoyman
70c51d29fc nocopyto switch (closes #952) 2015-03-12 09:15:49 +02:00
Michael Snoyman
f8847bd231 runFormPost: proper behavior for missing input #950 2015-03-11 07:25:53 +02:00
Michael Snoyman
376b6f9c0d Allow blaze-builder 0.4 2015-03-10 14:56:44 +02:00
Michael Snoyman
d83bcb62a1 Version bump 2015-03-06 07:30:45 +00:00
Michael Snoyman
9429d163b6 Merge pull request #947 from chreekat/keter-package-extra-files
Add and process Keter option 'extraFiles'
2015-03-06 09:15:38 +02:00
Bryan Richter
5b9e616ee2 Minor refactor of keter function 2015-03-04 09:55:03 -08:00
Bryan Richter
6b43e08f89 Add and process Keter option 'extraFiles' 2015-03-04 09:31:26 -08:00
Michael Snoyman
76ed92fe9f Update PATH 2015-03-01 14:34:51 +02:00
Michael Snoyman
29443a4c02 Travis fixes 2015-03-01 14:12:08 +02:00
Michael Snoyman
0fcd9b3c98 Attempted update to Travis config 2015-03-01 14:01:28 +02:00
Michael Snoyman
94b8842813 Version bump 2015-03-01 13:51:19 +02:00
Michael Snoyman
af600271bf Missing changes 2015-03-01 13:50:21 +02:00
Michael Snoyman
ed1d6ad6bb Version bump 2015-03-01 13:39:48 +02:00
Michael Snoyman
a2da368697 Merge pull request #945 from paul-rouse/master
Disregard proxy environment variables in yesod devel
2015-03-01 13:35:31 +02:00
Paul Rouse
5281d7aa3e Remain compatible with pre-0.4.7 http-client 2015-03-01 11:20:19 +00:00
Paul Rouse
e69ea760e1 Version bound on http-client 2015-03-01 08:17:20 +00:00
Paul Rouse
761e7dd374 Disregard proxy environment variables in yesod devel 2015-02-28 21:38:11 +00:00
Michael Snoyman
c7b4f1ddbe Version bump 2015-02-24 18:38:54 +02:00
Michael Snoyman
d1cfe481fd Scaffolding update: minimal uses yesod-core 2015-02-24 18:32:41 +02:00
Michael Snoyman
5c47486c86 Merge pull request #941 from joelteon/master
Add pragmas for GHC 7.10
2015-02-23 07:20:55 +02:00
Christopher Reichert
11fa46d8ba Merge pull request #940 from haroldl/master
Improve error message when "yesod devel" complains about the GHC version...
2015-02-22 22:19:18 -06:00
Joel Taylor
dbd5fbfea2 add pragmas 2015-02-22 17:18:13 -08:00
Harold Lee
f8fb6d3dc3 Improve error message when "yesod devel" complains about the GHC version.
I hit this problem and the fix was to reinstall yesod-bin (because I'd
upgraded my version of ghc):

    cabal install --reinstall yesod-bin

See issue #476.
2015-02-22 13:35:13 -08:00
Michael Snoyman
df0cf82f56 Allow path-pieces 0.2 2015-02-19 11:56:24 +02:00
Michael Snoyman
d82d3843b4 Version bump 2015-02-19 08:33:41 +02:00
Michael Snoyman
e60356bf9a Merge branch 'googleemail2-person' of https://github.com/zudov/yesod 2015-02-19 08:31:31 +02:00
Konstantin Zudov
18a8513e38 Save the access_token only from special handler 2015-02-16 14:16:26 +02:00
Michael Snoyman
a9ff4f44a6 Scaffolding update 2015-02-16 10:39:45 +02:00
Konstantin Zudov
7ed5d4ad39 Added means to fetch user's Google profile
The existing GoogleEmail2 auth did that:
  - Acquire user access token with offline access
  - Use token to acquire user's profile
  - Build `Creds` with user's email as `ident` and the other profile
    details as stringy key-value pairs in `credsExtra`

This wasn't enough for me, for several reasons:
  - Access token was not saved after authentication. If we request 'offline'
    token why not to have a way of using it later.
  - Stringy key-value profile is not nice and `credsExtra` can be accessed
    only from `getAuthId`
  - I might want to request the profile after authentication process

So I've added the needed features.
  - The access token is saved in a session
  - There is a `Person` type with `FromJSON` instance and `getPerson`
    can be used to acquire it from `HandlerT`
2015-02-16 09:44:13 +02:00