Comments (3)
Hey, I would love this feature! Are there any updates on this? I see there is a branch social_login that contains Facebook and Google login code but I think it is not completed yet, right?
from stormpath-shiro.
Hi @adko-pl, the code in social_login
is still a work in progress but it is fully functional. You are free to play with it. Keep in mind that it it still needs to undergo some more steps before it is ready to be released but, in its current state, it might be already useful for you. It would be great if you can share some feedback with us.
You will not find documentation for it yet, so I will summarize the important parts here:
1 - The UI has moved from JSP to velocity
2 - This plugin now creates a set of web resources providing a default war that will give you a home, login and registration functionality out-of-the-box. In your web project you need to depend on the plugin this way:
<dependency>
<groupId>com.stormpath.shiro</groupId>
<artifactId>stormpath-shiro-core</artifactId>
<version>${stormpath.shiro.version}</version>
</dependency>
<dependency>
<groupId>com.stormpath.shiro</groupId>
<artifactId>stormpath-shiro-web</artifactId>
<version>${stormpath.shiro.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
Take a look at the social_login branch of the sample app. If you add new UI files with the exact same location and name, then those files take precedence and thus override the default provided web resources. For example, If you delete the src/main/webapp/templates/login.vm
file in the sample app you will see that the login now provides the Google/Facebook buttons (because the login.vm
from the plugin is used now). This is all achieved via Maven War Overlay. The UI from the sample app uses a different style, so this login will not be displayed correctly. You will need to tweak the css files if you want to use the UI from these two projects at the same time.
3 - You need to provide the configuration values required for Google and Social Login: src/main/resources/config.ini
Please let us know if you need any help.
Regards!
from stormpath-shiro.
in 0.7.0
from stormpath-shiro.
Related Issues (20)
- Add permission editing support using Custom Data HOT 1
- Login requires at least one HTTP call to the Stormpath API HOT 7
- Deprecated use of ApiKeys HOT 2
- Replace JSP with Velocity
- Coming from a support question: It would be nice to provide OS-independent ApiKey File Reader HOT 1
- ID Site support for Shiro HOT 1
- NoSuchElementException when reading principals where multiple Realms in use HOT 1
- Stormpath customData access HOT 13
- WebListener must implement at least one listener interface
- At logout time, Shiro and the new Stormpath Servlet should be logged out HOT 1
- Upgrade Jackson dependency to version 2 HOT 1
- Authentication failure HOT 1
- Runtime problem occurs when using latest version of stormpath-sdk (1.0.alpha) HOT 1
- Stormpath.* properties should take precedence over config in shiro.ini
- web-fragment.xml does not validate
- Vulnerability when caching is enabled HOT 9
- Login for already logged-in user succeeds despite wrong credentials HOT 1
- Authentication Info to stay in cache after logout HOT 3
- Upgrade Stormpath Java SDK to version 1.0.RC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stormpath-shiro.