I have written an Open Social OAuth enabled Gadget in IBM Connections 4.0 and the OAuth Provider Service is also written by me as well, the problem I am facing is while authorizing the gadget through OAuth flow I open the popup using the following code
var popup = new gadgets.oauth.Popup(oauthApprovalUrl, null, onOpen,onClose);
and upon successful authorization the popup closes automatically but in case when the user Denies the access to the app my oauth service redirects to the callback url but after that redirection the popup is not getting closed I tried with following callback url.
https://<host>/connections/opensocial/gadgets/oauth2callback
Any help on this regard is greatly appreciated
Thanks