Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial with no Login View and spring ressource-server #129

Open
RainerGanss opened this issue Jan 10, 2023 · 3 comments
Open

Tutorial with no Login View and spring ressource-server #129

RainerGanss opened this issue Jan 10, 2023 · 3 comments

Comments

@RainerGanss
Copy link

Hi, I'm not sure where to put this, so here I am.

I'm developing a rather big micro service cloud application with dozen of services, two of whom have a vaadin frontend.
They are obviously behind a reverse proxy (nginx) which handles the authentication (forwards to an IDP).

In the documentation (https://vaadin.com/docs/latest/security/enabling-security) it states the requirement for a login view and a log out capability. I have the latter, but no vaadin log in view.

On the other hand I just wan't to configure the jwt security with spring using a ressource-server to check the provided bearer token.

Could you please provide a tutorial, how this is supposed to be configured?

I currently have this configuration, but am not sure, if this is correct.

@Override
    protected void configure(final HttpSecurity http) throws Exception {
        http.authorizeRequests().antMatchers(ACTUATOR_HEALTH_ENDPOINT).permitAll();
        http.authorizeRequests().antMatchers(ACTUATOR_PROMETHEUS_ENDPOINT).permitAll();

        super.configure(http);

        http.cors()
                .and()
                .oauth2ResourceServer()
                .jwt();
    }
@RainerGanss
Copy link
Author

#126 ideally together with this one since we'll move to spring boot 3 soon.

@mstahv
Copy link
Member

mstahv commented Mar 17, 2023

Hi, the current tutorial is now updated to V24 & SB 3. I also think this topic would be good to be covered, probably as a separate how-to guide instead of this introduction tutorial. We can keep this issue open here to remind about that, although it probably is going to be a separate article and separate example repository.

@RainerGanss
Copy link
Author

Sounds good to me. In particularly the nginx-config would be nice, since we (again) have trouble to configure it to work smoothly with vaadin. @DManstrator maybe add our config here after we verified the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants