mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-02-19 22:35:48 +01:00
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.
68 lines
2.5 KiB
Plaintext
68 lines
2.5 KiB
Plaintext
name: yesod-auth-oauth2
|
|
version: 0.1.5
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Tom Streller
|
|
maintainer: Pat Brisbin <pat@thoughtbot.com>
|
|
synopsis: OAuth 2.0 authentication plugins
|
|
description: Library to authenticate with OAuth 2.0 for Yesod web applications.
|
|
category: Web
|
|
stability: Experimental
|
|
cabal-version: >= 1.8
|
|
build-type: Simple
|
|
homepage: http://github.com/thoughtbot/yesod-auth-oauth2
|
|
|
|
flag network-uri
|
|
description: Get Network.URI from the network-uri package
|
|
default: True
|
|
|
|
library
|
|
if flag(network-uri)
|
|
build-depends: network-uri >= 2.6
|
|
else
|
|
build-depends: network < 2.6
|
|
|
|
build-depends: base >= 4.5 && < 5
|
|
, bytestring >= 0.9.1.4
|
|
, http-client >= 0.4.0 && < 0.5
|
|
, http-conduit >= 2.0 && < 3.0
|
|
, http-types >= 0.8 && < 0.9
|
|
, aeson >= 0.6 && < 0.10
|
|
, yesod-core >= 1.2 && < 1.5
|
|
, authenticate >= 1.3.2.7 && < 1.4
|
|
, random
|
|
, yesod-auth >= 1.3 && < 1.5
|
|
, text >= 0.7 && < 2.0
|
|
, yesod-form >= 1.3 && < 1.5
|
|
, transformers >= 0.2.2 && < 0.5
|
|
, hoauth2 >= 0.4.7 && < 0.5
|
|
, lifted-base >= 0.2 && < 0.4
|
|
, vector >= 0.10 && < 0.12
|
|
|
|
exposed-modules: Yesod.Auth.OAuth2
|
|
Yesod.Auth.OAuth2.Github
|
|
Yesod.Auth.OAuth2.Google
|
|
Yesod.Auth.OAuth2.Spotify
|
|
Yesod.Auth.OAuth2.Twitter
|
|
Yesod.Auth.OAuth2.Upcase
|
|
Yesod.Auth.OAuth2.EveOnline
|
|
Yesod.Auth.OAuth2.Nylas
|
|
|
|
ghc-options: -Wall
|
|
|
|
test-suite test
|
|
type: exitcode-stdio-1.0
|
|
main-is: Spec.hs
|
|
hs-source-dirs: test
|
|
ghc-options: -Wall
|
|
build-depends: base
|
|
, yesod-auth-oauth2
|
|
, hspec
|
|
, text
|
|
, yesod
|
|
, yesod-auth
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://github.com/thoughtbot/yesod-auth-oauth2.git
|