Skip to content

Commit 32cd890

Browse files
author
sgonzalezMSFT
committed
Fix OBO sample.
1 parent 09c2ccc commit 32cd890

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/integrationtest/java/com.microsoft.aad.msal4j/AuthorizationCodeIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private IAuthenticationResult acquireTokenInteractiveB2C(LabResponse labResponse
247247
String authCode) {
248248
IAuthenticationResult result;
249249
try{
250-
IClientCredential credential = ClientCredentialFactory.create("=]Y)_A7LX`]6\"]_PoD!)Lo24");
250+
IClientCredential credential = ClientCredentialFactory.create("");
251251
ConfidentialClientApplication cca = ConfidentialClientApplication.builder(
252252
labResponse.getAppId(),
253253
credential)

src/samples/msal-obo-sample/src/main/java/com/microsoft/azure/msalobosample/SecurityResourceServerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void configure(HttpSecurity http) throws Exception {
4343
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
4444
.and()
4545
.authorizeRequests()
46-
.antMatchers("/api")
46+
.antMatchers("/*")
4747
.access("#oauth2.hasScope('" + accessAsUserScope + "')"); // required scope to access /api URL
4848
}
4949

src/samples/msal-web-sample/src/main/java/com/microsoft/azure/msalwebsample/AuthPageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private String callOboService(String accessToken){
150150

151151
HttpEntity<String> entity = new HttpEntity<>(null, headers);
152152

153-
String result = restTemplate.exchange("http://localhost:8081/api", HttpMethod.GET,
153+
String result = restTemplate.exchange("http://localhost:8081/graphMeApi", HttpMethod.GET,
154154
entity, String.class).getBody();
155155

156156
return result;

0 commit comments

Comments
 (0)