oidc-client
Version:
OpenID Connect (OIDC) & OAuth2 client library
26 lines (20 loc) • 681 B
JavaScript
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { Log } from './Log.js';
import { IFrameWindow } from './IFrameWindow.js';
export class IFrameNavigator {
prepare(params) {
let frame = new IFrameWindow(params);
return Promise.resolve(frame);
}
callback(url) {
Log.debug("IFrameNavigator.callback");
try {
IFrameWindow.notifyParent(url);
return Promise.resolve();
}
catch (e) {
return Promise.reject(e);
}
}
}