我已将授权服务器配置为 public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.inMemory()
.withClient("clientID")
.authorizedGrantTypes("client-credentials", "password","refresh_token")
.authorities("ROLE_CLIENT", "ROLE_TRUSTED_CLIENT")
.scopes("read", "write", "trust")
.resourceIds("oauth2-resource")
.accessTokenValiditySeconds(120)
.refreshTokenValiditySeconds(300)
.secret("secret");
}
那么,基于这个配置,我怎样才能从 angular2 应用程序中获取 access_token 呢?