added EVE-SSO.
This commit is contained in:
		@@ -9,6 +9,7 @@ import Yesod.Default.Util   (addStaticContentExternal)
 | 
			
		||||
import Yesod.Core.Types     (Logger)
 | 
			
		||||
import qualified Yesod.Core.Unsafe as Unsafe
 | 
			
		||||
import Yesod.Auth.HashDB    (authHashDB)
 | 
			
		||||
import Yesod.Auth.OAuth2.EveOnline (oauth2EveImage,ImageType(..))
 | 
			
		||||
 | 
			
		||||
-- | The foundation datatype for your application. This can be a good place to
 | 
			
		||||
-- keep settings and values requiring initialization before your application
 | 
			
		||||
@@ -153,6 +154,7 @@ instance YesodAuth App where
 | 
			
		||||
    -- You can add other plugins like BrowserID, email or OAuth here
 | 
			
		||||
    authPlugins _ = [ authBrowserId def
 | 
			
		||||
                    , authHashDB (Just . UniqueUser)
 | 
			
		||||
                    , oauth2EveImage "" "" BigBlack
 | 
			
		||||
                    ]
 | 
			
		||||
 | 
			
		||||
    authHttpManager = getHttpManager
 | 
			
		||||
 
 | 
			
		||||
@@ -32,4 +32,6 @@ At the moment there is nothing much to see here but a bit of playing around with
 | 
			
		||||
    GRANT ALL ON DATABASE neat TO neat;
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
6. run yesod with ```yesod devel```
 | 
			
		||||
6. install dependencies and setup sandbox (invoke install.sh)
 | 
			
		||||
 | 
			
		||||
7. run yesod with ```yesod devel```
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								install.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								install.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
mkdir deps
 | 
			
		||||
cd deps
 | 
			
		||||
git clone https://github.com/Drezil/yesod-auth-oauth2
 | 
			
		||||
cd ..
 | 
			
		||||
cabal sandbox init
 | 
			
		||||
cabal sandbox add-source deps/yesod-auth-oauth2
 | 
			
		||||
cabal install --only-dependencies
 | 
			
		||||
@@ -55,6 +55,7 @@ library
 | 
			
		||||
                 , yesod-static                  >= 1.4.0.3    && < 1.5
 | 
			
		||||
                 , yesod-form                    >= 1.4.0      && < 1.5
 | 
			
		||||
                 , yesod-auth-hashdb             >= 1.4.0      && < 1.5
 | 
			
		||||
                 , yesod-auth-oauth2             >= 0.1.2
 | 
			
		||||
                 , classy-prelude                >= 0.10.2
 | 
			
		||||
                 , classy-prelude-conduit        >= 0.10.2
 | 
			
		||||
                 , classy-prelude-yesod          >= 0.10.2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user