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

Skip or disable login oauth2 page in XML #120

Open
mayaugusto7 opened this issue Feb 9, 2023 · 7 comments
Open

Skip or disable login oauth2 page in XML #120

mayaugusto7 opened this issue Feb 9, 2023 · 7 comments
Assignees

Comments

@mayaugusto7
Copy link

Hi!

Is there a formula the skip or disable login page oauth2? the example below.

spring_security_default_oauth2_login

@mayaugusto7 mayaugusto7 changed the title Skip or disable login oauth2 page Skip or disable login oauth2 page in XML Feb 9, 2023
@marcusdacoregio
Copy link
Contributor

Hi @mayaugusto7, have you tried formLogin((form) -> form.disable())?

@marcusdacoregio marcusdacoregio self-assigned this Mar 9, 2023
@mayaugusto7
Copy link
Author

Hi @marcusdacoregio is this possible in xml?

@marcusdacoregio
Copy link
Contributor

Sorry for my oversight. I don't think there is a property on <form-login> to disabled it.

Are you using <http auto-config="true">? If so try setting it to false, this way it will prevent the form login from being created

@mayaugusto7
Copy link
Author

Same using the attribute auto-config="false" the page was generated. I have a question, the filter class DefaultLoginPageGeneratingFilter can be override or removed?

@guikaua12
Copy link

Any news on this?

@marcusdacoregio
Copy link
Contributor

Hi, @guikaua12. There is no update on this yet. Can you share the reasons why you need the OAuth2 Login Page to be disabled?

@guikaua12
Copy link

Hi, @guikaua12. There is no update on this yet. Can you share the reasons why you need the OAuth2 Login Page to be disabled?

the reason is that i don't really like that MVC pattern where the views come from the backend, i would like to let the backend only care about everything except views, so instead replace those screens with frontend screens written in React or smth

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

3 participants