Skip to Content

How to Add Login Overlays in Customer Applications


We have an application which can be accessed by anyone without any authentication.

Now just like SCN, when user clicks on login button it should open a dialog/ overlay to login via SAP ID services.

Our application is hosted on HCP.

Can anyone help in login process? How can we create a login.jspa just like SCN guys have ?



Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2015 at 07:55 AM

    Hi Pranjal,

    You can consider using SAP Cloud Identity Service .

    You can add Overlay Login to your application following these steps Add Login Overlays in Customer Applications.

    Initially the login screen will look like exactly as the Login screen of but you can customize it by adding own branding(logo and colors). You can configure the Access Levels and the Authentication methods - allow User Registration, Social logon or adding Two-factor Authentication, see How to Configure Applications.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 08, 2015 at 11:58 PM

    Hey mate,

    My best guess would be to do everything in the backend.

    The backend would return to you the data that you are allowed to see and if you are logged in then you would receive more information and other possible actions.

    The login is quite easy if your backend is JAVA, it would look like:

    if (req.getRemoteUser() == null) {

    loginContext = LoginContextFactory.createLoginContext("FORM");



    The statement "req.getRemoteUser()" tells you if you are logged in or not. If you're logged in then your service should return the actions that are possible when logged in.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 30, 2016 at 10:28 AM

    I have integrated cloud identity service with my html5 app hosted on HCP. but i could not gain access to the register or login form which the cloud id service provides. can anyone help?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      You first need to enable SAML authentication in your HTML5 app as described here SAP HANA Cloud Platform, then the protected resources would redirect to SAP Cloud Identity Logon Screen, if you have configured correct Trust in your HCP account.

      To enable registration, you need to enable Public access to your application SAP Cloud Identity Service, then the Register Button would appear on the Logon screen and you would be able to use the direct Register link, too.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.