spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user experience is poor after sso

ntop001 opened this issue · comments

After part1,we get an application that we can login and use it, but after sso, we get an application that we should login and authorize it then wen can use it . it seems the application is not my app, the user experience is poor. How can I build the ui-app as part 1(login and use it), and the backend resource-app still use sso ?

@Override
        public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
            clients.inMemory()
                    .withClient("acme")
                    .secret("acmesecret")
                    .authorizedGrantTypes("authorization_code", "refresh_token",
                            "password").scopes("openid").autoApprove(true);
        }

Then, it'll skip the authorize step.