forked from hazza/dspace-angular
Deleted IP-Login, X509-Login and LDAP-login comoponent
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
<div>LDAP login component - to be implemented</div>
|
|
@@ -1,21 +0,0 @@
|
|||||||
/**
|
|
||||||
* /users/sign-in
|
|
||||||
* @class LogInComponent
|
|
||||||
*/
|
|
||||||
import {Component, OnInit} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'ds-dynamic-ldap',
|
|
||||||
templateUrl: './dynamic-ldap.component.html',
|
|
||||||
styleUrls: ['./dynamic-ldap.component.scss'],
|
|
||||||
|
|
||||||
})
|
|
||||||
export class DynamicLdapComponent {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
// console.log('constructor of DynamicLdapComponent called');
|
|
||||||
}
|
|
||||||
}
|
|
@@ -8,9 +8,7 @@ import {AppState} from '../../../app.reducer';
|
|||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {DynamicLoginMethod} from './log-in-container.model';
|
import {DynamicLoginMethod} from './log-in-container.model';
|
||||||
import {AuthMethodConstants} from '../../../core/auth/models/auth-method.model';
|
import {AuthMethodConstants} from '../../../core/auth/models/auth-method.model';
|
||||||
import {DynamicLdapComponent} from '../ldap/dynamic-ldap.component';
|
|
||||||
import {DynamicX509Component} from '../x509/dynamic-x509.component';
|
|
||||||
import {DynamicIpComponent} from '../ip/dynamic-ip.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-log-in-container',
|
selector: 'ds-log-in-container',
|
||||||
@@ -65,15 +63,6 @@ export class LogInContainerComponent implements OnDestroy, OnInit {
|
|||||||
// this.shibbolethUrl = 'https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at/shibboleth';
|
// this.shibbolethUrl = 'https://fis.tiss.tuwien.ac.at/Shibboleth.sso/Login?target=https://fis.tiss.tuwien.ac.at/shibboleth';
|
||||||
return new DynamicLoginMethod(authMethod.authMethodName, DynamicShibbolethComponent, authMethod.location)
|
return new DynamicLoginMethod(authMethod.authMethodName, DynamicShibbolethComponent, authMethod.location)
|
||||||
break;
|
break;
|
||||||
case AuthMethodConstants.LDAP:
|
|
||||||
return new DynamicLoginMethod(authMethod.authMethodName, DynamicLdapComponent)
|
|
||||||
break;
|
|
||||||
case AuthMethodConstants.IP:
|
|
||||||
return new DynamicLoginMethod(authMethod.authMethodName, DynamicIpComponent)
|
|
||||||
break;
|
|
||||||
case AuthMethodConstants.X509:
|
|
||||||
return new DynamicLoginMethod(authMethod.authMethodName, DynamicX509Component)
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
<div>X509 login component - to be implemented</div>
|
|
@@ -1,21 +0,0 @@
|
|||||||
/**
|
|
||||||
* /users/sign-in
|
|
||||||
* @class LogInComponent
|
|
||||||
*/
|
|
||||||
import {Component, OnInit} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'ds-dynamic-x509',
|
|
||||||
templateUrl: './dynamic-x509.component.html',
|
|
||||||
styleUrls: ['./dynamic-x509.component.scss'],
|
|
||||||
|
|
||||||
})
|
|
||||||
export class DynamicX509Component {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
// console.log('constructor of DynamicLdapComponent called');
|
|
||||||
}
|
|
||||||
}
|
|
@@ -141,9 +141,8 @@ import { ItemDetailPreviewFieldComponent } from './object-detail/my-dspace-resul
|
|||||||
import {LogInContainerComponent} from './log-in/log-in-container/log-in-container.component';
|
import {LogInContainerComponent} from './log-in/log-in-container/log-in-container.component';
|
||||||
import {s} from '@angular/core/src/render3';
|
import {s} from '@angular/core/src/render3';
|
||||||
import {DynamicShibbolethComponent} from './log-in/shibboleth/dynamic-shibboleth.component';
|
import {DynamicShibbolethComponent} from './log-in/shibboleth/dynamic-shibboleth.component';
|
||||||
import {DynamicLdapComponent} from './log-in/ldap/dynamic-ldap.component';
|
|
||||||
import {DynamicIpComponent} from './log-in/ip/dynamic-ip.component';
|
|
||||||
import {DynamicX509Component} from './log-in/x509/dynamic-x509.component';
|
|
||||||
|
|
||||||
const MODULES = [
|
const MODULES = [
|
||||||
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
|
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
|
||||||
@@ -265,9 +264,7 @@ const COMPONENTS = [
|
|||||||
ItemTypeSwitcherComponent,
|
ItemTypeSwitcherComponent,
|
||||||
BrowseByComponent,
|
BrowseByComponent,
|
||||||
LogInContainerComponent,
|
LogInContainerComponent,
|
||||||
DynamicShibbolethComponent,
|
DynamicShibbolethComponent
|
||||||
DynamicLdapComponent,
|
|
||||||
DynamicIpComponent
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
@@ -311,11 +308,8 @@ const ENTRY_COMPONENTS = [
|
|||||||
PlainTextMetadataListElementComponent,
|
PlainTextMetadataListElementComponent,
|
||||||
ItemMetadataListElementComponent,
|
ItemMetadataListElementComponent,
|
||||||
MetadataRepresentationListElementComponent,
|
MetadataRepresentationListElementComponent,
|
||||||
DynamicLdapComponent,
|
|
||||||
LogInComponent,
|
LogInComponent,
|
||||||
DynamicShibbolethComponent,
|
DynamicShibbolethComponent
|
||||||
DynamicIpComponent,
|
|
||||||
DynamicX509Component
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const SHARED_ITEM_PAGE_COMPONENTS = [
|
const SHARED_ITEM_PAGE_COMPONENTS = [
|
||||||
|
Reference in New Issue
Block a user