File tree Expand file tree Collapse file tree 3 files changed +72
-6
lines changed
src/main/java/com/microsoft/aad/msal4jbrokers Expand file tree Collapse file tree 3 files changed +72
-6
lines changed Original file line number Diff line number Diff line change 1+ # Compiled class file
2+ * .class
3+
4+ # Log file
5+ * .log
6+
7+ # BlueJ files
8+ * .ctxt
9+
10+ # Mobile Tools for Java (J2ME)
11+ .mtj.tmp /
12+
13+ # Package Files #
14+ * .jar
15+ * .war
16+ * .nar
17+ * .ear
18+ * .zip
19+ * .tar.gz
20+ * .rar
21+
22+ # Intellij
23+ .. /.idea /
24+
25+ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
26+ hs_err_pid *
27+
28+ # Lombok
29+ target /*
Original file line number Diff line number Diff line change 3232 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
3333 </properties >
3434 <dependencies >
35- <!-- https://mvnrepository.com/artifact/com.microsoft.azure/msal4j -->
36- <dependency >
37- <groupId >com.microsoft.azure</groupId >
38- <artifactId >msal4j</artifactId >
39- <version >1.13.1</version >
40- </dependency >
35+ <!-- https://mvnrepository.com/artifact/com.microsoft.azure/msal4j -->
36+ <dependency >
37+ <groupId >com.microsoft.azure</groupId >
38+ <artifactId >msal4j</artifactId >
39+ <version >1.13.2</version >
40+ </dependency >
41+ <dependency >
42+ <groupId >org.projectlombok</groupId >
43+ <artifactId >lombok</artifactId >
44+ <version >1.18.6</version >
45+ <scope >provided</scope >
46+ </dependency >
4147 </dependencies >
4248
4349 <!-- force https -->
Original file line number Diff line number Diff line change 1+ package com .microsoft .aad .msal4jbrokers ;
2+
3+ import com .microsoft .aad .msal4j .*;
4+ import lombok .extern .slf4j .Slf4j ;
5+
6+ import java .util .concurrent .CompletableFuture ;
7+
8+ @ Slf4j
9+ class MSALRuntimeBroker implements IBroker {
10+
11+ @ Override
12+ public IAuthenticationResult acquireToken (PublicClientApplication application , SilentParameters requestParameters ) {
13+ log .debug ("Should not call this API if msal runtime init failed" );
14+ throw new MsalClientException ("Broker implementation missing" , "missing_broker" );
15+ }
16+
17+ @ Override
18+ public IAuthenticationResult acquireToken (PublicClientApplication application , InteractiveRequestParameters requestParameters ) {
19+ throw new MsalClientException ("Broker implementation missing" , "missing_broker" );
20+ }
21+
22+ @ Override
23+ public IAuthenticationResult acquireToken (PublicClientApplication application , UserNamePasswordParameters requestParameters ) {
24+ throw new MsalClientException ("Broker implementation missing" , "missing_broker" );
25+ }
26+
27+ @ Override
28+ public CompletableFuture removeAccount (IAccount account ) {
29+ throw new MsalClientException ("Broker implementation missing" , "missing_broker" );
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments