Closed
Description
Related to
It would be good to have a Resource Server sample that integrates with the authorization server sample. It should be quite similar to the Resource Server sample in Spring Security.
Like other samples, it should go into the samples
directory. For simplicity, classes ought to be placed into a package called sample
.
Given a valid token from the authorization server, the following test should pass:
this.mockMvc.perform(get("/")
.header("Authorization", "Bearer " + token))
.andExpect(status().isOk());