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