Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

header Spring Security OAuth2 Outlook Plugin

Download

Add a Outlook OAuth2 provider to the Spring Security OAuth2 Plugin.

Installation

Add the following dependencies in build.gradle

dependencies {
...
    compile 'org.grails.plugins:spring-security-oauth2:1.+'
    compile 'org.grails.plugins:spring-security-oauth2-outlook:0.1'
...
}

Usage

Add this to your application.yml

grails:
    plugin:
        springsecurity:
            oauth2:
                providers:
                    outlook:
                        api_key: 'outlook-api-key'               #needed
                        api_secret: 'outlook-api-secret'         #needed
                        successUri: "/oauth2/outlook/success"    #optional
                        failureUri: "/oauth2/outlook/failure"    #optional
                        callback: "/oauth2/outlook/callback"     #optional
                        scopes: "some_scope"                     #optional

You can replace the URIs with your own controller implementation.

In your view you can use the taglib exposed from this plugin and from OAuth plugin to create links and to know if the user is authenticated with a given provider:

<oauth2:connect provider="outlook" id="outlook-connect-link">Outlook</oauth2:connect>

Logged with outlook?
<oauth2:ifLoggedInWith provider="outlook">yes</oauth2:ifLoggedInWith>
<oauth2:ifNotLoggedInWith provider="outlook">no</oauth2:ifNotLoggedInWith>

License

Apache 2

About

Outlook OAuth2 Provider for the grails-spring-security-oauth2 plugin

Resources

Releases

No releases published

Packages

No packages published