j-martinez-dev / shiro-jwt Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
Why not jjwt instead of nimbusds?
https://github.com/jwtk/jjwt/ seems to be made by those who also make Shiro.
Thanks.
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???
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.
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;
}
Please update dependencies to the latest versions:
Thank you.
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 .
It would be really helpful if there were a working example instead of just a "test example" with Arquillian.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.