Re: [onap-discuss] How to use the internal login, instead of external login in Portal SDK

2018-03-15 Thread TALASILA, MANOOP (MANOOP)
Hi Abdelmuhaimen,

The ONAP Portal and its on-boarded application must be on same domain to take 
advantage of the single signon. Due to security reason the ONAP Portal 
restricts to one domain (defined in the properties) across the applications 
on-boarded to it.

However, if the application is not interested in single signon feature, then 
the new application can be always be on-boarded as a “Hyperlink only 
application” which will be opened into a new browser rather than the internal 
Portal’s tab.

Manoop

From: "abdelmuhaimen.sea...@orange.com" 
Date: Thursday, March 15, 2018 at 4:58 AM
To: khaled kee , "onap-discuss@lists.onap.org" 
, "TALASILA, MANOOP (MANOOP)" 

Subject: RE: Fwd: [onap-discuss] How to use the internal login, instead of 
external login in Portal SDK

Hello Manoop / ONAP SDK experts,

If we develop an application that should be on-boarded on the ONAP Portal, but 
the application has a domain name different than “onap.org”, how can we keep 
our domain name and still be able to read the logged in session cookies  from 
ONAP Portal ?

Thanks.



Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733

From: khaled kee [mailto:khaledk...@gmail.com]
Sent: Thursday, March 15, 2018 9:28 AM
To: SEAUDI Abdelmuhaimen OBS/CSO; onap-discuss@lists.onap.org
Subject: Re: Fwd: [onap-discuss] How to use the internal login, instead of 
external login in Portal SDK


Hello all,

We noticed that "single_signon" spring controller reads "EPService" cookie to 
get the logged-in user, however it couldn't read the cookie. When we logged the 
request cookies, we didn't find "onap" cookies. We noticed that xDemo is a 
subdomain of "onap.org". After adding our sdk server IP as subdomain of 
"onap.org" from our hosts files, it can read the cookies and redirect correctly 
and sees the logged-in user.

Best Regards,
Khaled.

On 3/15/2018 9:12 AM, 
abdelmuhaimen.sea...@orange.com wrote:
Hi,

We replaced the URL in the onboarding URLs like below

URL = 
http://1.2.3.4:8080/epsdk-apps-os/welcome.htm
REST URL = Blank
User = demo
Password = demo


Then, we replaced the following lines in the WEB-INF/classes/portal.properties 
file:

portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl
ecomp_redirect_url = 
http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
ecomp_rest_url = 
http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi

However, when we login to the ONAP Portal, and then click our app, we receive 
the following error : portal.api.simpledemo.onap.org redirected you too many 
times.

If we try to access the app directly from the browser, from outside the portal, 
we receive the same error, we notice that it is repeating redirection to 
“/single_signon.htm?forwardURL=welcome.htm”.

When we compare our portal.properties file with the xDEMO APP that comes with 
the Portal, we notice no differences, except for the decryption key and, and 
for system.properties the difference is the authenticate_user_server variables, 
but I understand authenticate_user_server varialbe is not used.

Any idea how we can use the single signon, or what might be missing from our 
side ?

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733

From: TALASILA, MANOOP (MANOOP) [mailto:talas...@research.att.com]
Sent: Tuesday, March 13, 2018 6:15 PM
To: SEAUDI Abdelmuhaimen OBS/CSO; 
onap-discuss@lists.onap.org
Subject: Re: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi Abdelmuhaimen,

Thanks for using the Portal SDK. The steps you followed are correct, however 
the external login is provided for developer to test their app locally (without 
having the entire Portal). But, when the app is ready and onboarded to the 
Portal, please use the welcome.htm url in the onboarding step – 

Re: [onap-discuss] How to use the internal login, instead of external login in Portal SDK

2018-03-15 Thread abdelmuhaimen.seaudi
Hi,

We replaced the URL in the onboarding URLs like below

URL = http://1.2.3.4:8080/epsdk-apps-os/welcome.htm
REST URL = Blank
User = demo
Password = demo


Then, we replaced the following lines in the WEB-INF/classes/portal.properties 
file:

portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl
ecomp_redirect_url = 
http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
ecomp_rest_url = http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi

However, when we login to the ONAP Portal, and then click our app, we receive 
the following error : portal.api.simpledemo.onap.org redirected you too many 
times.

If we try to access the app directly from the browser, from outside the portal, 
we receive the same error, we notice that it is repeating redirection to 
“/single_signon.htm?forwardURL=welcome.htm”.

When we compare our portal.properties file with the xDEMO APP that comes with 
the Portal, we notice no differences, except for the decryption key and, and 
for system.properties the difference is the authenticate_user_server variables, 
but I understand authenticate_user_server varialbe is not used.

Any idea how we can use the single signon, or what might be missing from our 
side ?

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733

From: TALASILA, MANOOP (MANOOP) [mailto:talas...@research.att.com]
Sent: Tuesday, March 13, 2018 6:15 PM
To: SEAUDI Abdelmuhaimen OBS/CSO; 
onap-discuss@lists.onap.org
Subject: Re: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi Abdelmuhaimen,

Thanks for using the Portal SDK. The steps you followed are correct, however 
the external login is provided for developer to test their app locally (without 
having the entire Portal). But, when the app is ready and onboarded to the 
Portal, please use the welcome.htm url in the onboarding step – 
“http://your_app_host:port/epsdk-app-os/welcome.htm”. This should let you use 
the Portal’s single sign on.

Onboarding steps for your reference - 
https://wiki.onap.org/display/DW/Application+Onboarding#ApplicationOnboarding-addapp

Manoop

From: 
>
 on behalf of 
"abdelmuhaimen.sea...@orange.com" 
>
Date: Tuesday, March 13, 2018 at 10:22 AM
To: "onap-discuss@lists.onap.org" 
>
Subject: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi,

I am working on an application based on ONAP Portal SDK, that follow the 
tutorial 
http://onap.readthedocs.io/en/amsterdam/submodules/portal.git/docs/tutorials/portal-sdk/creating.html.

The application is onboarded in the ONAP Portal, and runs inside a tab inside 
the ONAP Portal.

However, the app is using the external login, which means it does not detect 
that a user is currently logged in the portal with an active session, and it 
forwards me to the SDK demo/demo login screen that shows the old ECOMP Logo.

What do I need to change in my demo app, so that it uses the Portal internal 
login or Single Sign On feature of the portal ?

I am using the RestrictedBaseController class for my demo app.

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733


_



Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.



This message and its attachments may contain confidential or privileged 
information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete 
this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.

Thank you.


Re: [onap-discuss] How to use the internal login, instead of external login in Portal SDK

2018-03-14 Thread abdelmuhaimen.seaudi
Hi Manoop,

We replaced the URL in the onboarding URLs like below

URL = http://1.2.3.4:8080/epsdk-apps-os/welcome.htm
REST URL = Blank
User = demo
Password = demo


Then, we replaced the following lines in the WEB-INF/classes/portal.properties 
file:

portal.api.impl.class = org.onap.portalapp.service.OnBoardingApiServiceImpl
ecomp_redirect_url = 
http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm
ecomp_rest_url = http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi

However, when we login to the ONAP Portal, and then click our app, we receive 
the following error : portal.api.simpledemo.onap.org redirected you too many 
times.

If we try to access the app directly from the browser, from outside the portal, 
we receive the same error, we notice that it is repeating redirection to 
“/single_signon.htm?forwardURL=welcome.htm”.

When we compare our portal.properties file with the xDEMO APP that comes with 
the Portal, we notice no differences, except for the decryption key and, and 
for system.properties the difference is the authenticate_user_server variables, 
but I understand authenticate_user_server varialbe is not used.

Any idea how we can use the single signon, or what might be missing from our 
side ?

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733

From: TALASILA, MANOOP (MANOOP) [mailto:talas...@research.att.com]
Sent: Tuesday, March 13, 2018 6:15 PM
To: SEAUDI Abdelmuhaimen OBS/CSO; onap-discuss@lists.onap.org
Subject: Re: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi Abdelmuhaimen,

Thanks for using the Portal SDK. The steps you followed are correct, however 
the external login is provided for developer to test their app locally (without 
having the entire Portal). But, when the app is ready and onboarded to the 
Portal, please use the welcome.htm url in the onboarding step – 
“http://your_app_host:port/epsdk-app-os/welcome.htm”. This should let you use 
the Portal’s single sign on.

Onboarding steps for your reference - 
https://wiki.onap.org/display/DW/Application+Onboarding#ApplicationOnboarding-addapp

Manoop

From: 
>
 on behalf of 
"abdelmuhaimen.sea...@orange.com" 
>
Date: Tuesday, March 13, 2018 at 10:22 AM
To: "onap-discuss@lists.onap.org" 
>
Subject: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi,

I am working on an application based on ONAP Portal SDK, that follow the 
tutorial 
http://onap.readthedocs.io/en/amsterdam/submodules/portal.git/docs/tutorials/portal-sdk/creating.html.

The application is onboarded in the ONAP Portal, and runs inside a tab inside 
the ONAP Portal.

However, the app is using the external login, which means it does not detect 
that a user is currently logged in the portal with an active session, and it 
forwards me to the SDK demo/demo login screen that shows the old ECOMP Logo.

What do I need to change in my demo app, so that it uses the Portal internal 
login or Single Sign On feature of the portal ?

I am using the RestrictedBaseController class for my demo app.

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733


_



Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.



This message and its attachments may contain confidential or privileged 
information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete 
this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.

Thank you.


Re: [onap-discuss] How to use the internal login, instead of external login in Portal SDK

2018-03-13 Thread TALASILA, MANOOP (MANOOP)
Hi Abdelmuhaimen,

Thanks for using the Portal SDK. The steps you followed are correct, however 
the external login is provided for developer to test their app locally (without 
having the entire Portal). But, when the app is ready and onboarded to the 
Portal, please use the welcome.htm url in the onboarding step – 
“http://your_app_host:port/epsdk-app-os/welcome.htm”. This should let you use 
the Portal’s single sign on.

Onboarding steps for your reference - 
https://wiki.onap.org/display/DW/Application+Onboarding#ApplicationOnboarding-addapp

Manoop

From:  on behalf of 
"abdelmuhaimen.sea...@orange.com" 
Date: Tuesday, March 13, 2018 at 10:22 AM
To: "onap-discuss@lists.onap.org" 
Subject: [onap-discuss] How to use the internal login, instead of external 
login in Portal SDK

Hi,

I am working on an application based on ONAP Portal SDK, that follow the 
tutorial 
http://onap.readthedocs.io/en/amsterdam/submodules/portal.git/docs/tutorials/portal-sdk/creating.html.

The application is onboarded in the ONAP Portal, and runs inside a tab inside 
the ONAP Portal.

However, the app is using the external login, which means it does not detect 
that a user is currently logged in the portal with an active session, and it 
forwards me to the SDK demo/demo login screen that shows the old ECOMP Logo.

What do I need to change in my demo app, so that it uses the Portal internal 
login or Single Sign On feature of the portal ?

I am using the RestrictedBaseController class for my demo app.

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733


_



Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.



This message and its attachments may contain confidential or privileged 
information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete 
this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.

Thank you.
___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss


[onap-discuss] How to use the internal login, instead of external login in Portal SDK

2018-03-13 Thread abdelmuhaimen.seaudi
Hi,

I am working on an application based on ONAP Portal SDK, that follow the 
tutorial 
http://onap.readthedocs.io/en/amsterdam/submodules/portal.git/docs/tutorials/portal-sdk/creating.html.

The application is onboarded in the ONAP Portal, and runs inside a tab inside 
the ONAP Portal.

However, the app is using the external login, which means it does not detect 
that a user is currently logged in the portal with an active session, and it 
forwards me to the SDK demo/demo login screen that shows the old ECOMP Logo.

What do I need to change in my demo app, so that it uses the Portal internal 
login or Single Sign On feature of the portal ?

I am using the RestrictedBaseController class for my demo app.

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: abdelmuhaimen.sea...@orange.com
Mobile: +2012 84644 733


_

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss