• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How do we disabled SpringBoot default login Form page while keeping the Security for OAuth2 works

 
Ranch Hand
Posts: 1052
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have been trying various ways to disabled the SpringBoot default login form page without avail.

These are the things I tried :

1. exclude @SpringBootApplication(exclude = {SecurityAutoConfiguration.class})' - but this will cause the OAuth2 not able to perform the authentication....
2.

3. Set precdence by using Order

So, the page where the index.html will comes first.

4. and then i did this in my Controller


Nothing works.
I am using latest Spring Boot Security 6.3

Please let me know if i am missing out anything.

Tks.

 
Video Course Author
Posts: 38
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried ... ?
 
tangara goh
Ranch Hand
Posts: 1052
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Howard Hyde wrote:Have you tried ... ?



Actually, I did not but now it doesn't give me the default login when I did not do that lines you mentioned.  I just used the implicit ways that was showed in the example sample code in Spring code base.

But, I am now stuck with another problem - how do you test other users for the social login you have created ?

'cos I have created the client-Id and client-secret in google account but really this login is for other users and not for my own usage.

 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic