mendix / CommunityCommons

This module adds a number reusable Java methods to your project, which can be called from Microflows or custom Java actions.
Apache License 2.0
13 stars 57 forks source link

ensure applicationUrl starts with https #139

Closed wegiswes closed 1 month ago

wegiswes commented 12 months ago

The java action GetApplicationURL returns the URL without the prefix https://, this breaks the redirect logic of the Mendix OpenID module for Azure SSO (redirect_uri, post_logout_redirect_uri & location headers)

atennapel commented 1 month ago

Hello @wegiswes , thanks for your PR. The logic in this PR can break if the url does not start with https:// for example in the case of localhost. If Core.getConfiguration().getApplicationRootUrl() does not return a url with a protocol then it's more likely that the runtime is misconfigured and the problem should be investigated on the configuration side.