OAuth2 objaśnienie

0

hej, robie sobie logowanie przy użyciu OAutha, i nie wiem co robi ten kod (z tutoriala)

 public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
        clients.inMemory().withClient("my-trusted-client")
                .authorizedGrantTypes("client_credentials", "password")
                .authorities("ROLE_CLIENT","ROLE_TRUSTED_CLIENT").scopes("read","write","trust")
                .resourceIds("oauth2-resource").accessTokenValiditySeconds(5000).secret("secret");
}

opisze mi go ktoś ?

0

up

1 użytkowników online, w tym zalogowanych: 0, gości: 1