Change the redirect url using the current page url on shibboleth authentication

This commit is contained in:
Giuseppe Digilio
2020-02-07 13:09:55 +01:00
parent cc4b7b215e
commit 0452a9a8cd
4 changed files with 93 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
export const MockWindow = {
location: {
_href: '',
set href(url: string) {
this._href = url;
},
get href() {
return this._href;
}
}
};
export class NativeWindowRefMock {
get nativeWindow(): any {
return MockWindow;
}
}
export function NativeWindowMockFactory() {
return new NativeWindowRefMock();
}