In my vaadin application I need to login using facebook and google signin with integration of shiro and oAuth2 module. I tried using pac4j but I'm not able get properly.
Can any one suggest some examples?
Related
Has anyone successfully implemented OAuth using Doorkeeper as Provider [Authorization Code grant type] in React ? what package did you used that acted as omniauth [if you are using RaIls]
I'm no familiar with Doorkeeper, but depending on what you are trying to achieve you might be interested in having a look at Pizzly. It has a React compatible JS client both to connect and perform authenticated requests to third-party API (e.g. Twitter, Google Sheets, Typeform, etc.)
Here's a demo with the GitHub API + Pizzly using React: https://codesandbox.io/s/pizzly-github-react-demo-rq78z?file=/src/App.js:493-545
Short: How to configure jhipster/spring social to land on custom page containing status / jwt token instead of app homepage after OAuth handshake?
Long:
I am building an app that has a web and mobile version that talk to a jhipster back end. I need to implement OAuth authentication in my mobile app. I am using nativescript on front end (mobile app) and jhipster with jwt/social login on the back end. I would like my app to authenticate with Facebook, Google, Twitter and possibly more providers.
There is a nativescript-oauth plugin but it currently will only support 1 provider (facebook, office360) per app instance and has no notion of a backend of any form. This plugin's architecture has the client invoking the OAuth dance through the nativescript WebView and then it parses/scans results from the WebView to check success or failure.
I am attempting to achieve something similar with the jhipster social login. I would like to invoke the Spring Social OAuth exchange through a nativescript WebView component that loads the /signin/ url in the jhipster app and then watch the WebView component to check for success or failure and get jwt token.
Can I configure jhipster/spring social to NOT land on home page after successful OAuth handshake but instead redirect to an empty or status page (jsp/thymleaf html) that I could scrape for success and jwt token?
So my answer to this is easily found in the application.yml file. There is a property: "jhipster.social.redirect-after-sign-in". Just changed it to my custom page and it worked fine after social login.
What is the correct way of integrating Google+ login with Spring Security?
I saw that there is http://projects.spring.io/spring-security-oauth/, but not sure how (and if it's possible) to integrate with Google+.
I have a grails app configured with spring-security-core and I need to allow Facebook / Twitter logins. I'm using the facebook plugin for grails and I'm using twitter4j for twitter authentication. Currently, I am successfully authenticating against Twitter and Facebook.
I'm wondering how I am to integrate those logins with Spring security. If a user logs in with Twitter I am assuming I need to create an account in my database and then use that account to process a login for Spring Security so that it wires up the session appropriately and all the authentication checks happen based on my #Secured annotations and tag usage in my views.
Something similar, I am guessing, needs to happen based on Facebook logins. Can someone point me in the right direction to get this implemented correctly?
A really good resource for understanding how to integrate an external authentication source is this article by Luke Taylor:
http://blog.springsource.com/2010/08/02/spring-security-in-google-app-engine/
Grant
Do I need to write a custom authentication provider to use facebook connect with account registration + authorization for the Spring Security plugin in Grails? I am trying to offer the traditional application registration with facebook connect in a grails dev app using Spring Security. Does this make sense? Any ideas?
You can inspiration in spring-security-facebook project. But the project is no longer has an active development.
Other possibility is to use Apache Shiro plugin which has facebook login or nimble plugin.