Skip to content

Commit 874797b

Browse files
authored
Merge pull request #188 from microsoftgraph/bugfix/canary-auth
- fixes #178 adds canary url in list of valid hostnames for authentication
2 parents 46f445c + 72f044b commit 874797b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/authentication/BaseAuthenticationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Provides basic common methods for all authentication providers
1212
*/
1313
public abstract class BaseAuthenticationProvider implements IAuthenticationProvider {
14-
private static final HashSet<String> validGraphHostNames = new HashSet<>(Arrays.asList("graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn"));
14+
private static final HashSet<String> validGraphHostNames = new HashSet<>(Arrays.asList("graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn", "canary.graph.microsoft.com"));
1515
/**
1616
* Determines whether a request should be authenticated or not based on it's url.
1717
* If you're implementing a custom provider, call that method first before getting the token

0 commit comments

Comments
 (0)