OneDrive / onedrive-sdk-ios

OneDrive SDK for iOS
https://dev.onedrive.com
Other
101 stars 88 forks source link

Can't Sign in with MS account #216

Open nguyenvietvu opened 3 years ago

nguyenvietvu commented 3 years ago
  1. When I create new App on https://portal.azure.com, I also configurate Redirect URL for IOS platform like this: 'msauth.com.abc.apps.xyz://auth'
  2. AppDelegate: ODClient.setMicrosoftAccountAppId("cc07b813-1749-4745-88cf-1e9e0fb183b3", scopes: ["onedrive.readwrite", "offline_access"])
  3. call:
    ODClient.client { (client, error) in guard error != nil else { return } }
  4. Error when open MS sign in view controller: "invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application. onedrive sdk"
  5. more infor: when i try with AppID(ClientID: '0000000048160AF8' or another my old app: ) from the sample: https://github.com/OneDrive/onedrive-sdk-ios/tree/master/Examples/iOSExplorer -> no problem
jadfls commented 3 years ago

@nguyenvietvu did you solve this issue?

yutakaA commented 2 years ago

+1 We have the same issue.