-
Notifications
You must be signed in to change notification settings - Fork 19
Logging into German-hosted OneDrive servers fails #11
Comments
Having the same issue here. Would be great to know how to fix this. |
Just wanted to share some information regarding this issue even though I haven't found a working solution yet. Apparently, "Microsoft Cloud Germany" uses different endpoints: https://developer.microsoft.com/en-us/graph/docs/concepts/deployments I believe that changing the Microsoft Graph endpoint to MSGraphClientConfiguration *configuration = [MSGraphClientConfiguration defaultConfiguration];
configuration.apiEndpoint = [NSString stringWithFormat:@"%@/%@", @"https://graph.microsoft.de", MSGraphApiVersion]; It would be more elegant if that's handled by the library itself but at least we have the option to do it externally. However, I didn't have much success getting the Azure AD endpoints for authentication to work. The documentation I've linked mentions that Azure AD also has a different endpoint: But there is more:
Sooo, I guess this library wouldn't work with these older endpoints. At least, I'm getting HTTP error 400 with Is there any library that conforms to This is what I've configured if anyone is interested. Obviously, this setup is just temporary for quick experiments: NXOAuth2AuthenticationProvider *provider = [[NXOAuth2AuthenticationProvider alloc] init];
[provider setClientId:@"..." scopes:@[@"..."]];
provider.authorizationURL = @"https://login.microsoftonline.de/common/oauth2/authorize";
provider.tokenURL = @"https://login.microsoftonline.de/common/oauth2/token";
MSGraphClientConfiguration *configuration = [MSGraphClientConfiguration defaultConfiguration];
configuration.authenticationProvider = provider;
configuration.apiEndpoint = [NSString stringWithFormat:@"%@/%@", @"https://graph.microsoft.de", MSGraphApiVersion]; |
Could you please assist or clarify, it seems your auth adapter works only with US-hosted OneDrive servers (office.com). One of our German users has account under portal.office.de server, hosted by T-Systems in German data center. And it looks like authentication is searching for his credentials on US servers, when he tries to login from Germany.
Asked this question in msgraph-sdk-ios they forwarded me here.
The text was updated successfully, but these errors were encountered: