mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
This required a lot of CPP refactoring and extension. I plan to shift our lower bound and target only the newer hoauth2 soon, but I'd like to get out a compatible version first, which this aims to do. The comments in Compat.hs try to explain the gymnastics we have to endure to get there. I'm sorry, it's not ideal.
85 lines
1.6 KiB
YAML
85 lines
1.6 KiB
YAML
---
|
|
name: yesod-auth-oauth2
|
|
version: 0.7.0.0
|
|
synopsis: OAuth 2.0 authentication plugins
|
|
description: Library to authenticate with OAuth 2.0 for Yesod web applications.
|
|
category: Web
|
|
author:
|
|
- Tom Streller
|
|
- Patrick Brisbin
|
|
- Freckle Engineering
|
|
license: MIT
|
|
maintainer: engineering@freckle.com
|
|
github: freckle/yesod-auth-oauth2
|
|
homepage: http://github.com/freckle/yesod-auth-oauth2
|
|
|
|
extra-source-files:
|
|
- README.md
|
|
- CHANGELOG.md
|
|
|
|
ghc-options: -Wall
|
|
|
|
dependencies:
|
|
- base >=4.9.0.0 && <5
|
|
|
|
library:
|
|
source-dirs: src
|
|
dependencies:
|
|
- aeson >=0.6
|
|
- bytestring >=0.9.1.4
|
|
- cryptonite >=0.25
|
|
- errors
|
|
- hoauth2 >=1.11.0
|
|
- http-client >=0.4.0
|
|
- http-conduit >=2.0
|
|
- http-types >=0.8
|
|
- memory
|
|
- microlens
|
|
- mtl
|
|
- safe-exceptions
|
|
- text >=0.7
|
|
- transformers
|
|
- uri-bytestring
|
|
- yesod-auth >=1.6.0
|
|
- yesod-core >=1.6.0
|
|
- unliftio
|
|
|
|
executables:
|
|
yesod-auth-oauth2-example:
|
|
main: Main.hs
|
|
source-dirs: example
|
|
ghc-options:
|
|
- -threaded
|
|
- -rtsopts
|
|
- -with-rtsopts=-N
|
|
dependencies:
|
|
- yesod-auth-oauth2
|
|
- aeson >=0.6
|
|
- aeson-pretty
|
|
- bytestring >=0.9.1.4
|
|
- containers >=0.6.0.1
|
|
- http-conduit >=2.0
|
|
- load-env
|
|
- text >=0.7
|
|
- warp
|
|
- yesod
|
|
- yesod-auth >=1.6.0
|
|
when:
|
|
- condition: ! "!(flag(example))"
|
|
buildable: false
|
|
|
|
tests:
|
|
test:
|
|
main: Spec.hs
|
|
source-dirs: test
|
|
dependencies:
|
|
- yesod-auth-oauth2
|
|
- hspec
|
|
- uri-bytestring
|
|
|
|
flags:
|
|
example:
|
|
description: Build the example application
|
|
manual: false
|
|
default: false
|