This plugin provides the capability to authenticate via github oauth provider. Depends on grails-spring-security-oauth2.
Switch branches/tags
Nothing to show
Clone or download
Roberto Perez
Roberto Perez bump version to 1.0.2
Latest commit 7cb21d3 Aug 31, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper minor fixes Aug 14, 2016
grails-app the profile scope must be url Aug 31, 2016
src/main/groovy/grails/plugin/springsecurity/oauth2/github package refactor Aug 14, 2016
.gitignore cleanup Aug 14, 2016
.travis.yml Update .travis.yml Aug 14, 2016
LICENSE Initial commit Aug 14, 2016 Update Aug 29, 2016
build.gradle bump version to 1.0.2 Aug 31, 2016 Initial commit Aug 14, 2016
gradlew Initial commit Aug 14, 2016
gradlew.bat Initial commit Aug 14, 2016

Spring Security OAuth2 Github Plugin

Build Status Download Slack Signup

Add a Github OAuth2 provider to the Spring Security OAuth2 Plugin by @MatrixCrawler (Johannes Brunswicker).


Add the following dependencies in build.gradle

dependencies {
    compile 'org.grails.plugins:spring-security-oauth2:1.+'
    compile 'org.grails.plugins:spring-security-oauth2-github:1.0.+'


Add this to your application.yml

                        api_key: 'github-client-id'             #needed
                        api_secret: 'github-client-secret'      #needed
                        successUri: "/oauth2/github/success"    #optional
                        failureUri: "/oauth2/github/failure"    #optional
                        callback: "/oauth2/github/callback"     #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="github" id="github-connect-link">Github</oauth2:connect>

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


Apache 2


Alt text

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.