Saml spring java application, Redirecting to http, port: 80 instead of https on app engine

32 views
Skip to first unread message

Ramya k

unread,
Dec 22, 2017, 10:08:18 AM12/22/17
to Google App Engine

I am developing an application on Google App Engine in java using spring boot to test IDP SSO.


I am using  saml2 with spring security. Google App Engine will act as an service provider and for IDP we will use another provider.


I have a working demo on my localhost.


https://localhost:8443/ takes to index.html.

It has text (Hello world, guys!) and "launch SSO" button.


When you click the button it redirects to IDP select page - https://localhost:8443/saml/discovery/alais/{keystore.key}?entityID={entityId}; where we can select the IDP and click login.


When I deployed the app in Google App Engine flexible, the application loads correctly at https://{appTest}.appspot.com/


But when I click "launch SSO" button on the page, it is not redirecting to IDP select page - https://{appTest}.appspot.com/saml/discovery/alais/{keystore.key}?entityID={entityId}


Instead it is redirecting to http://ip Address/saml/discovery/alais/{keystore.key}?entityID={entityId}.


In logs, I see that it is getting redirected to http and port 80.


Are there any properties I need to set for redirect to work properly on cloud?


Please let me know if you have any suggestions.

George (Cloud Platform Support)

unread,
Dec 22, 2017, 1:53:32 PM12/22/17
to Google App Engine
Hello Ramya, 

This group is meant for general discussion about the platform, and voicing of opinions. For such technical details as in your #1 post above, you will be surely better served if you post on serverfault or similar sites, where experts are active and may provide help quite effectively. We appreciate your understanding. 
Reply all
Reply to author
Forward
0 new messages