Giter VIP home page Giter VIP logo

grails-google-authentification-example's Introduction

grails-google-authentification-example

Google Authentication sample for Grails using Google Authentification for Grails plugin (official repo).

Before running the app (grails 2.3.4), do not forget to configure your google key and secret from google console! Then modify Config.groovy:168-169 with your new values.

Google console configuration example for localhost: configuration_google

grails-google-authentification-example's People

Contributors

bagage avatar manijshrestha avatar

Stargazers

Jeremie Jarosh avatar Juan Bono avatar  avatar Greg Dubicki avatar ssfsx17 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

grails-google-authentification-example's Issues

Config.groovy issue

You have permitAll to '/**', this opens up everything. I think this should not be there. Also I was only able to get this plugin working with grails.plugin.springsecurity.securityConfigType = "InterceptUrlMap"

Callback redirecting to Failure url

After login, it goes to callback url and then to failure url automatically. My app on local server runs on http://127.0.0.1:8080/google-signin and in google console redirect url is "http://127.0.0.1:8080/google-signin/oauth/google/callback". I tried by removing port from it too. The failure url on my browser is coming out to be "http://127.0.0.1:8080/google-signin/oauth/google/error#" which is saying 404. I am new to grails so please let me know do I need to create error and callback routes myself in the app? Please help.

override linkOrCreateAccount and auto login

Hey, Many thanks for this example. In this sample demo, after successful authentication, we get redirected to linkOrCreateAccount page. Is there a way to avoid this and auto-logon the user with just google signon. (oAuth). Lets say, after google oAuth success, I want to redirect to a page which is spring-secured. How do I ensure spring security authentication occurs with google oAuth success

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.