Update sample with placeholders for oauth client
This commit is contained in:
@@ -4,15 +4,15 @@ spring:
|
||||
client:
|
||||
registration:
|
||||
github-client-1:
|
||||
client-id: 1b4c6c2d23a2dbec8959
|
||||
client-secret: 8bdb4047d98f37e1c6aeba9ffd2017bc31682e1b
|
||||
client-id: ${APP-CLIENT-ID}
|
||||
client-secret: ${APP-CLIENT-SECRET}
|
||||
client-name: Github user
|
||||
provider: github
|
||||
scope: user
|
||||
redirect_uri: http://localhost:8080/oauth2/authorize/code/github
|
||||
github-client-2:
|
||||
client-id: 1b4c6c2d23a2dbec8959
|
||||
client-secret: 8bdb4047d98f37e1c6aeba9ffd2017bc31682e1b
|
||||
client-id: ${APP-CLIENT-ID}
|
||||
client-secret: ${APP-CLIENT-SECRET}
|
||||
client-name: Github email
|
||||
provider: github
|
||||
scope: user:email
|
||||
|
||||
@@ -22,7 +22,8 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Madhura Bhave
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = {
|
||||
"APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret" })
|
||||
@DirtiesContext
|
||||
public class SampleOAuth2ClientApplicationTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user