Git Product home page Git Product logo

shiro-jwt's People

Contributors

bdemers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiro-jwt's Issues

Error Shiro environment initialization

I have followed your instructions in order to use your library, however Shiro fails to start with error:

(EnvironmentLoader.java:152) - Shiro environment initialization failed
java.lang.IllegalStateException: BeanManager not found in JNDI and not set via setBeanManager()
at org.ops4j.pax.shiro.cdi.impl.BeanManagerProvider.getBeanManager(BeanManagerProvider.java:60)
...

Any Ideas???

Is there an web page demo

HI!I'm Chinese. English expression is not very good.

I want to know how to perform the test?Then see the run effect。

run: mvn test? or junit test JWTOrFormAuthenticationFilterTest?

Is there an web page demo?

sorry! I'm used to using spring boot framework.

is it right to get userinfo for every request?

This method "findById" is used for every request, which may waste cpu and memory.

    @Override
    protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) {
        JWTAuthenticationToken upToken = (JWTAuthenticationToken) token;
        **UserDefault user = userRepository.findById(upToken.getUserId());**

        if (user != null && userRepository.validateToken(upToken.getToken())) {
            SimpleAccount account = new SimpleAccount(user, upToken.getToken(), getName());
            account.addRole(user.getRoles());
            return account;
        }

        return null;
    }

Update dependencies!

Please update dependencies to the latest versions:

  • shiro >= 1.3.2
  • nimbus jwt >= 4.26.1
  • etc.

Thank you.

More information about shiro-jwt

I am learning jwt recently ,and shiro-jwt seems a good project for mobile app while .And do you have some demo use shiro-jwt for us to learning , or other learning resources ,while I could not get more information about shiro and jwt from google .

Working example?

It would be really helpful if there were a working example instead of just a "test example" with Arquillian.

Thank you.

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.