GithubHelp home page GithubHelp logo

Comments (3)

adamsiemion avatar adamsiemion commented on August 23, 2024

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.

mrioan avatar mrioan commented on August 23, 2024

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.

bdemers avatar bdemers commented on August 23, 2024

in 0.7.0

from stormpath-shiro.

Related Issues (20)

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.