Skip to content

Commit aa37ab5

Browse files
committed
changes to support proxy configs
1 parent 88bfef3 commit aa37ab5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

oauth2-platform-api/src/main/java/com/intuit/oauth2/client/DiscoveryAPIClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ public class DiscoveryAPIClient {
4545

4646
private ProxyConfig proxyConfig;
4747

48+
//use this constructor to apply proxy configs
4849
public DiscoveryAPIClient(ProxyConfig proxyConfig) {
4950
this.proxyConfig = proxyConfig;
5051
}
5152

53+
//for non proxy call, use this constructor
54+
public DiscoveryAPIClient() {
55+
this.proxyConfig = null;
56+
}
57+
5258
/**
5359
* Calls the Discovery Document API based on the the Environment provided and
5460
* returns an object with url’s for all the endpoints

0 commit comments

Comments
 (0)