Comments (7)
Hello @Amialc . I'm trying to reproduce this issue but I can't seem to, it works for me.
Can you please copy here the contents of your auth0.properties
? I'm particularly interested in domain
and issuer
. Do you have the slash at the end?
For example:
auth0.domain: mydomain.eu.auth0.com
auth0.issuer: https://mydomain.eu.auth0.com/
from auth0-spring-security-mvc-sample.
Hello @mpaktiti, thanks for advice, you were right, i've downloaded sample and issuer
was not set. But now i've got another problem. When i'm trying to login, it redirects me to /login
page back with message Error! Please log in
, but in logs it's all good:
auth0.domain: tutorials.auth0.com
auth0.issuer: https://tutorials.auth0.com/
auth0.clientId:
auth0.clientSecret:
auth0.onLogoutRedirectTo: /login
auth0.securedRoute: /portal/*
auth0.loginCallback: /callback
auth0.loginRedirectOnSuccess: /portal/home
auth0.loginRedirectOnFail: /login
auth0.base64EncodedSecret: true
auth0.authorityStrategy: ROLES
auth0.servletFilterEnabled: false
auth0.defaultAuth0WebSecurityEnabled: false
auth0.connection: {CONNECTION}
auth0.customLogin: false
#auth0.customLogin: true
auth0.signingAlgorithm: HS256
#auth0.signingAlgorithm: RS256
#auth0.publicKeyPath: /WEB-INF/certificate/cert.pem
from auth0-spring-security-mvc-sample.
hi vlad,
This may be because in order to access the home page you must have role ROLE_ADMIN
Try adding a rule to your dashboard that automatically adds ROLE_ADMIN to your user profile and you should be successful in reaching the home page.
Here is such a Rule just to get things working.
from auth0-spring-security-mvc-sample.
@Amialc ^^^^
from auth0-spring-security-mvc-sample.
@mpaktiti @arcseldon thanks guys, now it's working, but i'm think no need so complex authentication (based on roles) on such start samples.
Anyway, thanks.
from auth0-spring-security-mvc-sample.
@Amialc - i think you are right.
@maria - for the 01-Login - we could remove the line .antMatchers("/portal/**").hasAuthority("ROLE_ADMIN")
from the configuration and then it will do login without the need for any Rules to be set. That does make a lot of sense. What do you think?
from auth0-spring-security-mvc-sample.
@arcseldon Sounds good. I can do the change.
from auth0-spring-security-mvc-sample.
Related Issues (15)
- Error when running app HOT 2
- unnecessary role usage HOT 2
- outdated auth0 lock HOT 2
- Regular Web App JAVA spring Security, library inconsistency
- Spring Boot Starter Redis is DEPRECATED
- error controller - better options ? HOT 1
- The README.md files contained in the project do not contain any instructions. HOT 2
- Java Spring Security Webapp: Unformatted message HOT 2
- Allowed Logout URL: http://localhost:3000/login missing in quickstart instructions HOT 1
- Quickstart not working with JDK 11 (Oracle) HOT 2
- Missing features in demo to be really illustrative: Show ID token payload, verify token, scopes HOT 2
- Authentication does not contain roles HOT 2
- No readme HOT 1
- 09-MFA is empty 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 auth0-spring-security-mvc-sample.