Revert OAuth2 Client Registration Grant Type Hierarchy
Closes gh-14554
This commit is contained in:
@@ -53,20 +53,13 @@ public class SampleOAuth2ClientApplicationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void loginShouldHaveBothOAuth2LoginClientsToChooseFrom() {
|
||||
public void loginShouldHaveAllOAuth2ClientsToChooseFrom() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/login",
|
||||
String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).contains("/oauth2/authorization/yahoo");
|
||||
assertThat(entity.getBody()).contains("/oauth2/authorization/github-client-1");
|
||||
assertThat(entity.getBody()).contains("/oauth2/authorization/github-client-2");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void authorizationCodeClientIsPresent() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/login",
|
||||
String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).contains("/oauth2/authorization/github-repos");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user