GithubHelp home page GithubHelp logo

Comments (7)

mpaktiti avatar mpaktiti commented on May 31, 2024

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.

vmartynets avatar vmartynets commented on May 31, 2024

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:
image

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.

arcseldon avatar arcseldon commented on May 31, 2024

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.

arcseldon avatar arcseldon commented on May 31, 2024

@Amialc ^^^^

from auth0-spring-security-mvc-sample.

vmartynets avatar vmartynets commented on May 31, 2024

@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.

arcseldon avatar arcseldon commented on May 31, 2024

@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.

mpaktiti avatar mpaktiti commented on May 31, 2024

@arcseldon Sounds good. I can do the change.

from auth0-spring-security-mvc-sample.

Related Issues (15)

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.