@Override
protected void registerAuthentication(AuthenticationManagerBuilder auth)
throws Exception {
auth
.apply(new InMemoryClientDetailsServiceConfigurer())
.withClient("tonr")
.resourceIds(SPARKLR_RESOURCE_ID)
.authorizedGrantTypes("authorization_code","implicit")
.authorities("ROLE_CLIENT")
.scopes("read","write")