finalist / liferay-oidc-plugin

Plugin for Liferay, enabling OpenID Connect authentication
Apache License 2.0
21 stars 31 forks source link

Private site landing after login #33

Open JaRJaR55 opened 6 years ago

JaRJaR55 commented 6 years ago

Hello, I have a issue with private site. Without the I login from a private site and I lading to it after, if I turned on the plugin and I login froma a the same private, I landing to /guet/home.

Seems the plugin doesn't work with private site.

gvanderploeg commented 6 years ago

The plugin should not interfere with the regular redirect-to-original-url-after-login behaviour of Liferay. See also #31. As this is already the second report, I'll try and have a deeper look into it if/when I have the time..

JaRJaR55 commented 6 years ago

Hello, I have a issue with private site. Without the I login from a private site and I lading to it after, if I turned on the plugin and I login froma a the same private, I landing to /guet/home.

Seems the plugin doesn't work with private site.

Hello, there is a behavior on a method that modify the URL before redirect:

protected String getRedirectUri(HttpServletRequest request) { String completeURL = liferay.getCurrentCompleteURL(request); return completeURL; //return completeURL.replaceAll("\?.*", "");

}

Thanks in advance.