mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Shbboleth workflow new
This commit is contained in:
@@ -2,11 +2,13 @@ import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { LoginPageComponent } from './login-page.component';
|
||||
import {ShibbolethComponent} from './shibboleth/shibboleth.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', pathMatch: 'full', component: LoginPageComponent, data: { title: 'login.title' } }
|
||||
/* { path: 'shibboleth', component: ShibbolethComponent }*/
|
||||
])
|
||||
]
|
||||
})
|
||||
|
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { LoginPageComponent } from './login-page.component';
|
||||
import { LoginPageRoutingModule } from './login-page-routing.module';
|
||||
import {ShibbolethComponent} from './shibboleth/shibboleth.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -11,7 +12,8 @@ import { LoginPageRoutingModule } from './login-page-routing.module';
|
||||
SharedModule,
|
||||
],
|
||||
declarations: [
|
||||
LoginPageComponent
|
||||
LoginPageComponent,
|
||||
/* ShibbolethComponent*/
|
||||
]
|
||||
})
|
||||
export class LoginPageModule {
|
||||
|
3
src/app/+login-page/shibboleth/shibboleth.component.html
Normal file
3
src/app/+login-page/shibboleth/shibboleth.component.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<p>
|
||||
shibboleth works!
|
||||
</p>
|
25
src/app/+login-page/shibboleth/shibboleth.component.spec.ts
Normal file
25
src/app/+login-page/shibboleth/shibboleth.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ShibbolethComponent } from './shibboleth.component';
|
||||
|
||||
describe('ShibbolethComponent', () => {
|
||||
let component: ShibbolethComponent;
|
||||
let fixture: ComponentFixture<ShibbolethComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ShibbolethComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(ShibbolethComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
19
src/app/+login-page/shibboleth/shibboleth.component.ts
Normal file
19
src/app/+login-page/shibboleth/shibboleth.component.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {ShibbLoginAction} from '../../core/auth/auth.actions';
|
||||
import {Store} from '@ngrx/store';
|
||||
import {CoreState} from '../../core/core.reducers';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-shibboleth-page',
|
||||
templateUrl: './shibboleth.component.html',
|
||||
styleUrls: ['./shibboleth.component.css']
|
||||
})
|
||||
export class ShibbolethComponent implements OnInit {
|
||||
|
||||
constructor( private store: Store<CoreState>,) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.store.dispatch(new ShibbLoginAction());
|
||||
}
|
||||
|
||||
}
|
@@ -3,6 +3,7 @@ import { RouterModule } from '@angular/router';
|
||||
|
||||
import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component';
|
||||
import { AuthenticatedGuard } from './core/auth/authenticated.guard';
|
||||
import {ShibbolethComponent} from './+login-page/shibboleth/shibboleth.component';
|
||||
|
||||
const ITEM_MODULE_PATH = 'items';
|
||||
export function getItemModulePath() {
|
||||
@@ -32,7 +33,8 @@ export function getCommunityModulePath() {
|
||||
{ path: 'logout', loadChildren: './+logout-page/logout-page.module#LogoutPageModule' },
|
||||
{ path: 'submit', loadChildren: './+submit-page/submit-page.module#SubmitPageModule' },
|
||||
{ path: 'workspaceitems', loadChildren: './+workspaceitems-edit-page/workspaceitems-edit-page.module#WorkspaceitemsEditPageModule' },
|
||||
{ path: 'workflowitems', loadChildren: './+workflowitems-edit-page/workflowitems-edit-page.module#WorkflowItemsEditPageModule' },
|
||||
{ path: 'workflowitems', loadChildren: './+workflowitems-edit-page/workflowitems-edit-page.module#WorkflowitemsEditPageModule' },
|
||||
{ path: 'shibboleth', pathMatch: 'full', component: ShibbolethComponent },
|
||||
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
|
||||
])
|
||||
],
|
||||
|
@@ -39,6 +39,7 @@ import { ExpandableAdminSidebarSectionComponent } from './+admin/admin-sidebar/e
|
||||
import { NavbarModule } from './navbar/navbar.module';
|
||||
import { JournalEntitiesModule } from './entity-groups/journal-entities/journal-entities.module';
|
||||
import { ResearchEntitiesModule } from './entity-groups/research-entities/research-entities.module';
|
||||
import { ShibbolethComponent } from './+login-page/shibboleth/shibboleth.component';
|
||||
|
||||
export function getConfig() {
|
||||
return ENV_CONFIG;
|
||||
@@ -128,6 +129,7 @@ const EXPORTS = [
|
||||
],
|
||||
declarations: [
|
||||
...DECLARATIONS,
|
||||
ShibbolethComponent,
|
||||
],
|
||||
exports: [
|
||||
...EXPORTS
|
||||
|
@@ -36,7 +36,7 @@
|
||||
<div>
|
||||
<br>
|
||||
<a class="btn btn-lg btn-primary btn-block mt-2"
|
||||
href="https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login"
|
||||
href="https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at/shibboleth"
|
||||
role="button"
|
||||
>HardCoded Shibb</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user