We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f48d3 commit 6f5487bCopy full SHA for 6f5487b
docs/upgrade-to-v6.md
@@ -83,10 +83,12 @@ public class CustomTokenProvider implements AccessTokenProvider {
83
return token;
84
}
85
86
- @Override
+ // Make sure to have the right set of hosts
87
+ private final AllowedHostsValidator validator = new AllowedHostsValidator("graph.microsoft.com");
88
+ @Override
89
public AllowedHostsValidator getAllowedHostsValidator() {
90
// Handle allowed hosts validation logic here
- return new DefaultAllowedHostsValidator();
91
+ return validator;
92
93
```
94
Then instantiate the GraphServiceClient as follows:
0 commit comments