I'm having a problem integrating Firebase with Microsoft Auth in my iOS App.
The login page has been launched and I can sign in by Office365 account but login auth can not be finished because of the below Error :
"AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application:[app-id]"
I did check the setting in Firebase and below are the settings I add in the app of Azure Active Directory :
- Web redirect URL : "*.firebaseapp.com/__/auth/handler"
- Supported account types : "Accounts in any organizational directory (Any Azure AD directory Multitenant)"
Here are the swift code I implement :
provider = OAuthProvider(providerID: "microsoft.com")
provider?.customParameters = ["prompt": "consent",
"login_hint": "Login Hint"]
provider?.scopes = ["mail.read", "calendars.read"]
provider?.getCredentialWith(_: nil){ (credential, error) in
if let credential = credential {
Auth.auth().signIn(with: credential) { (authResult, error) in
if let error = error {
print(error.localizedDescription)
}
}
}
}
Does anyone know how to solve the problem or have the same problem?
prompt=consent
custom parameter. This will cause issues for you application. – Philippe Signoretprompt=consent
? (e.g.force users to provide consent?) – Liling Chenprompt=consent
users will be blocked (because they're not allowed to consent, and your app is forcing them to re-consent). You should only useprompt=consent
when you have established that the permissions your app requires have not already been granted. – Philippe Signoret