spring-guides / tut-spring-boot-oauth2

Spring Boot and OAuth2:: A tutorial on "social" login and single sign on with Facebook and Github

Home Page:https://spring.io/guides/tutorials/spring-boot-oauth2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing in sperate Class Files

Phil1991 opened this issue · comments

hi,

I tried to use this sample and make seperate class files. I made a UserController, this has the mapping method to /user. Also i moved the ClientResources in a seperate Class file and in the last step I made SecurityServer.java file, that extends the WebSecurityConfigurerAdapter and holds the methods configure, ssoFilter, github, facebook and the oauth2ClientFilterRegistration.

If I now start the server and go to localhost:8080, it changes the url to localhost:8080/login and a login form is shown instead of the links of index.html...
What did i do wrong?

Can you help me?

thanks

forgot the @configuration annotation closed....