diff --git a/dmp-backend/web/src/main/resources/application-devel.properties b/dmp-backend/web/src/main/resources/application-devel.properties index 913a2ee88..8d5622159 100644 --- a/dmp-backend/web/src/main/resources/application-devel.properties +++ b/dmp-backend/web/src/main/resources/application-devel.properties @@ -17,4 +17,20 @@ pdf.converter.url=http://localhost:88/ ####################CONFIGURATION FILES OVERRIDES CONFIGURATIONS########## configuration.externalUrls=/tmp/ExternalUrls.xml configuration.dynamicProjectUrl=/tmp/ProjectConfiguration.xml -configuration.h2020template=C:\\Users\\ikalyvas\\Documents\\OpenAIRE-EUDAT-DMP-service-pilot\\dmp-backend\\web\\src\\main\\resources\\documents\\h2020.docx \ No newline at end of file +configuration.h2020template=C:\\Users\\gkolokythas\\Documents\\OpenAIRE-EUDAT-DMP-service-pilot\\dmp-backend\\web\\src\\main\\resources\\documents\\h2020.docx + +#############TWITTER LOGIN CONFIGURATIONS######### +twitter.login.redirect_uri=http://127.0.0.1:4200/login/twitter + +#############LINKEDIN LOGIN CONFIGURATIONS######### +linkedin.login.redirect_uri=http://localhost:4200/login/linkedin + +#############FACEBOOK LOGIN CONFIGURATIONS######### +facebook.login.clientId=613977555670785 +facebook.login.clientSecret=b656eb30077454dea7b3cfd03b6e4310 +facebook.login.namespace=opendmp + +#############B2 ACCESS CONFIGURATIONS######### +b2access.externallogin.user_info_url=https://b2access-integration.fz-juelich.de:443/oauth2/userinfo +b2access.externallogin.access_token_url=https://b2access-integration.fz-juelich.de:443/oauth2/token +b2access.externallogin.redirect_uri=http://opendmp.eu/api/oauth/authorized/b2access diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index 0d7c0dbcc..016b87579 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; +import { B2AccessLoginComponent } from './ui/auth/login/b2access/b2access-login.component'; const appRoutes: Routes = [ { @@ -94,12 +95,12 @@ const appRoutes: Routes = [ breadcrumb: true }, }, - // { - // path: 'api/oauth/authorized/b2access', - // component: B2AccessLoginComponent, - // data: { - // }, - // } + { + path: 'api/oauth/authorized/b2access', + component: B2AccessLoginComponent, + data: { + }, + } ]; @NgModule({ diff --git a/dmp-frontend/src/app/app.module.ts b/dmp-frontend/src/app/app.module.ts index 2bdcd5e35..8fa29360a 100644 --- a/dmp-frontend/src/app/app.module.ts +++ b/dmp-frontend/src/app/app.module.ts @@ -18,6 +18,7 @@ import { NotificationModule } from './library/notification/notification.module'; import { BreadcrumbModule } from './ui/misc/breadcrumb/breadcrumb.module'; import { HelpContentModule } from './ui/misc/help-content/help-content.module'; import { NavigationModule } from './ui/misc/navigation/navigation.module'; +import { LoginModule } from './ui/auth/login/login.module'; // AoT requires an exported function for factories export function HttpLoaderFactory(http: HttpClient) { @@ -42,6 +43,7 @@ export function HttpLoaderFactory(http: HttpClient) { OverlayModule, CommonHttpModule, MatMomentDateModule, + LoginModule, //Ui NotificationModule, NavigationModule, @@ -67,4 +69,4 @@ export function HttpLoaderFactory(http: HttpClient) { ], bootstrap: [AppComponent] }) -export class AppModule { } \ No newline at end of file +export class AppModule { } diff --git a/dmp-frontend/src/app/ui/auth/login/login.component.html b/dmp-frontend/src/app/ui/auth/login/login.component.html index 338a9ed59..cc8dca4a2 100644 --- a/dmp-frontend/src/app/ui/auth/login/login.component.html +++ b/dmp-frontend/src/app/ui/auth/login/login.component.html @@ -5,7 +5,7 @@

Login