spring-security-samples icon indicating copy to clipboard operation
spring-security-samples copied to clipboard

Skip or disable login oauth2 page in XML

Open mayaugusto7 opened this issue 2 years ago • 7 comments

Hi!

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

spring_security_default_oauth2_login

mayaugusto7 avatar Feb 09 '23 18:02 mayaugusto7

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

marcusdacoregio avatar Mar 09 '23 12:03 marcusdacoregio

Hi @marcusdacoregio is this possible in xml?

mayaugusto7 avatar Mar 09 '23 13:03 mayaugusto7

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

marcusdacoregio avatar Mar 09 '23 13:03 marcusdacoregio

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

mayaugusto7 avatar Mar 09 '23 16:03 mayaugusto7

Any news on this?

guikaua12 avatar Apr 29 '24 19:04 guikaua12

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

marcusdacoregio avatar Apr 30 '24 12:04 marcusdacoregio

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

guikaua12 avatar Apr 30 '24 17:04 guikaua12