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.
2 parents e1f48d3 + 6f5487b commit fdd899bCopy full SHA for fdd899b
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