- Add
oauth2AzureADv2Widget
andoauth2AzureADv2ScopedWidget
- Add ORCID provider
- Drop support for LTS-12 / GHC-8.6
- Replace
cryptonite
withcrypton
- Add
oauth2GitHubWidget
andoauth2GitHubScopedWidget
@jaanisfehling
- Add support (with caveats) for relative approots @cptrodolfox
- Support
hoauth2-2.9
.
- Support
mtl-2.3
, which no longer re-exportsControl.Monad
- Add
AzureADv2
provider
- Support
hoauth-2.7
. This change is only breaking in the unlikely case of users using something other thanfetchAccessToken
orfetchAccessToken2
- Add Auth0 provider (@hw202207)
- Support
hoauth-2.2
and2.3
-
Support
hoauth2-2.0
The
OAuth2
type's fields have changed. If you are not defining your own Local Providers (i.e. you're not constructing anyOAuth2
values) you should not be affected by this change. If you are, you should update to the new field names.
- Remove dependencies upper bounds
- Relax dependencies bounds
- Expose
onDispatchError
and genericOtherDispatchError
for passthrough log - Don't throw exceptions; handle all errors through the set-message-redirect path
- Respect
onErrorHtml
for said error-handling - Support custom widget in Google plugin @jmorag
- Allow bytestring-0.11 and cryptonite 0.28
- Test with GHC 8.10 on CI
- Consistent dependencies bounds in all targets
- Adjust lower bounds on cryptonite
-
Filter
+
fromstate
tokensThis decreases entropy in the token slightly, but ensures that providers performing unexpected +/space/%20 encoding (e.g. ClassLink) still function.
See #140.
-
Add ClassLink provider
- Relax upper bounds on
hoauth2
andhttp-client
- Revert back to Authorization-header-only
fetchAccessToken
function - Add
authOAuth2'
andauthOAuth2Widget'
, which usefetchAccessToken2
- Update to GHC-8.8, and hoauth2-1.14
- Drop CI-backed support for GHC-8.4
- Tighten upper bound on hoauth2
- Replace
System.Random
state token generation withcryptonite
- Allow aeson-1.5 and hoauth2-1.14
- Add WordPress.com provider @nbloomf
- Don't report our own errors like OAuth2 ErrorResponses
- Added AzureAD provider
- COMPATIBILITY: Use
hoauth2-1.8.1
- COMPATIBILITY: Test with GHC 8.6.3, and not 8.2
- Allow http-client-0.6
- Remove deprecated Github module
- Allow aeson-1.4 and hoauth2-1.8
InvalidProfileResponse
was replaced with different, situation-specific constructors; the exception type is considered internal API, but end-users may see them in logs, or if they (unexpectedly) escape our error-handling- Errors during log-in no longer result in 4XX or 5XX responses; they now
redirect to
LoginR
with the exception details logged and something user-appropriate displayed viasetMessage
- Added GitLab provider
- Added properly-named
GitHub
module, deprecatedGithub
- Store
refreshToken
incredsExtra
- COMPATIBILITY: Allow and require yesod-1.6
- COMPATIBILITY: Stop testing GHC 8.0 on CI
- Check for
error
s in callback query params, as described in the spec
- COMPATIBILITY: Allow
http-types-0.12
-
COMPATIBILITY: Allow
aeson-1.3
-
COMPATIBILITY: Dropped a lot of information from
credsExtra
:TL;DR: you'll no longer find things like
username
oremail
as keys in thecredsExtra
map. Instead, you'll find the encoded profile response we received and the OAuth access token. You can/should do your own decoding or make your own follow-up requests to get extra data about your users.This reduced a lot of complexity, likely duplication between our decoding and yours, and (I think) makes the library easier to use.
-
COMPATIBILITY: Support GHC-8.2
-
COMPATIBILITY: Drop (claimed, but never tested) support for GHC-7.8 & 7.10
-
LICENSE: fixed vague licensing (MIT now)
- Internal project cleanup
- COMPATIBILITY: Use
hoauth2-1.3
- FIX: Update Nylas provider
- NEW: Battle.Net provider
- NEW: Bitbucket provider
- NEW: Salesforce provider
- FIX: Fix collision in GitHub
email
/public_email
extras value
- NEW: Slack provider (@jsteiner)
- FIX:
location
is optional in GitHub response
- COMPATIBILITY: Allow
transformers-0.5
(@paul-rouse)
- COMPATIBILITY: Allow
aeson-0.11
(@k-bx)
- NEW: Prefer primary email in GitHub provider
- NEW: Include
public_email
in GitHub extras response - REMOVED: Remove Twitter provider
- NEW: Nicer error message on invalid
code
(@silky)
- FIX: Incorrect
state
parameter handling
- FIX: Use newer Nylas endpoint
- NEW: A more different Google provider (@ssaavedra)
- NEW: Twitter provider
- REMOVED: Google provider, use
Yesod.Auth.GoogleEmail2
- CHANGED: Learn was renamed to Upcase
- COMPATIBILITY: Drop support for GHC-6
- COMPATIBILITY: Support GHC-7.10
- COMPATIBILITY: Allow
transformers-0.4
(@snoyberg)
- COMPATIBILITY: Allow
aeson-0.8
(@gfontenot)
- COMPATIBILITY: Allow Yesod 1.4 (@gregwebs)
- NEW: Spotify (@benekastah)
- FIX: Username may be missing in GitHub responses (@skade)
- NEW: Scope support in GitHub provider (@skade)
- NEW: GitHub provider (@freiric)
- COMPATIBILITY: flag-driven
network
/network-uri
dependency
- DOCUMENTATION: fix data declaration, allows Haddocks to build
- COMPATIBILITY: Allow
yesod-core-1.3
and targetyesod-auth-1.3
(@maxcan) - COMPATIBILITY: Target
haouth2-0.4
(@katyo)
- COMPATIBILITY: Allow
text-1.*
- COMPATIBILITY: Allow
lifted-base-0.2.*
- FIX: replace
error
crash withthrowIO
exception
- Various documentation fixes.
Initial version. Maintainer-ship taken over by @pbrisbin.