Commit b32727a7 authored by laurent l's avatar laurent l

IOS: OAuth authentication. Display correctly authentication errors

parent 11bf461c
......@@ -39,6 +39,11 @@ var NSWKNavigationDelegate = (NSObject as any).extend(
new Cookies().clearCookies();
}
if (page_url == 'bibapp://authorize') {
this._onError();
}
return this._origDelegate.webViewDecidePolicyForNavigationActionDecisionHandler(webview, navigationAction, decisionHandler);
},
......@@ -58,6 +63,7 @@ var NSWKNavigationDelegate = (NSObject as any).extend(
NSWKNavigationDelegate.ObjCProtocols = [WKNavigationDelegate];
export class OAuthWebViewClient {
protected _view: WebView;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment