mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Testing local storage of redirectURL
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
|||||||
isAuthenticated,
|
isAuthenticated,
|
||||||
isAuthenticationLoading
|
isAuthenticationLoading
|
||||||
} from '../../../../core/auth/selectors';
|
} from '../../../../core/auth/selectors';
|
||||||
|
import { AuthService } from '../../../../core/auth/auth.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-log-in-shibboleth',
|
selector: 'ds-log-in-shibboleth',
|
||||||
@@ -45,7 +46,8 @@ export class LogInShibbolethComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
constructor(@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel,
|
constructor(@Inject('authMethodModelProvider') public injectedAuthMethodModel: AuthMethodModel,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private store: Store<CoreState>) {
|
private store: Store<CoreState>,
|
||||||
|
private authService: AuthService) {
|
||||||
this.authMethodModel = injectedAuthMethodModel;
|
this.authMethodModel = injectedAuthMethodModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,7 +60,8 @@ export class LogInShibbolethComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
this.store.dispatch(new SetRedirectUrlAction('/mytest/url'));
|
// this.store.dispatch(new SetRedirectUrlAction('/mytest/url'));
|
||||||
|
this.authService.setRedirectUrl('myTest/url');
|
||||||
this.store.dispatch(new StartShibbolethAuthenticationAction(this.authMethodModel));
|
this.store.dispatch(new StartShibbolethAuthenticationAction(this.authMethodModel));
|
||||||
// https://host/Shibboleth.sso/Login?target=https://host/shibboleth
|
// https://host/Shibboleth.sso/Login?target=https://host/shibboleth
|
||||||
window.location.href = this.injectedAuthMethodModel.location;
|
window.location.href = this.injectedAuthMethodModel.location;
|
||||||
|
Reference in New Issue
Block a user