rohitghatol / spring-boot-microservices

Spring Boot Template for Micro services Architecture - Show cases how to use Zuul for API Gateway, Spring OAuth 2.0 as Auth Server, Multiple Resource (Web Services) Servers, Angular Web App, Eureka dor registration and Discover and Hystrix for circuit breaker
Apache License 2.0
1.77k stars 919 forks source link

Client #24

Open ajayaks opened 6 years ago

ajayaks commented 6 years ago

Hi,

On running auth server its not persisting the client in DB but users are getting persist, how to persist the client info also in DB.

public void configure(ClientDetailsServiceConfigurer clients) throws Exception {

    clients.jdbc(dataSource)
            .passwordEncoder(passwordEncoder)
            .withClient("client")
            .authorizedGrantTypes("authorization_code", "client_credentials", 
                    "refresh_token","password", "implicit")
            .authorities("ROLE_CLIENT")
            .resourceIds("apis")
            .scopes("read")
            .secret("secret")
            .accessTokenValiditySeconds(300);

} Please suggest Thanks