Closed nheath99 closed 6 years ago
The Facebook authentication configured later in this tutorial will automatically handle requests at /signin-facebook route to implement the OAuth flow.
The /signin-facebook route is handled by the middleware, not by your MVC controller. Your external login should route to something like /ExternalLoginCallback
.
Ah thanks, I read that about 1 million times and it just wasn't sinking in.
I'm getting an exception when trying to use Facebook OAuth in my application:
It's being configured successfully in Startup.ConfigureServices as such:
The Challenge result is being created in my AccountController:
However the callback method is not being reached:
, and I am getting the exception. I've setup my Facebook developer account successfully and added the valid Valid OAuth Redirect URIs as per the Docs.