Hello.
I have created an app at Facebook developer is built in asp.net core . I have a client set up to be authorized with that IdentityServer.
Now when i try to access a secure resource on client application, identity server redirects me to my identityserver website. There i try to authenticate via Facebook . After logging in, Facebook asks for the persmission that my identityserver needs to access . If i allow there, it all works fine .
But the issue arises when i click deny, then Facebook app redirects to my identity server website with error="access_denied" in querystring and my identityserver website throws exception
regarding that access denied error.
How can I handle that situation given the fact that I do not allow the application to access information at Faceboook? Thanks.
Read this link details carefully, looks similar to your issue
https://github.com/IdentityServer/IdentityServer4/issues/1087
Basically you would have to add custom C# code to handle this.
https://developers.facebook.com/docs/facebook-login/handling-declined-permissions/
The above link may also help, related to how to handle declined permissions.
When user enter the website and connected using her Facebook my app created under facebook developer ask him the permission to allow the app to recieve her informations like email adress age ... like the below picture.
when the user deny the permission . please look at the below picture :
I want redirect user to page or show a notifications says that the permission obligatory to send her updates by email.
Thanks.
Hello. Vikas_jk Thanks for your good effort to answar me
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly