You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default instance of UrlValidator prevents us to use intranet domain names, which are not compliant to url validator. For example dev.somewhere.local is invalid because of local is not valid TLD.
classSpringSecurityOAuth2Controller {
...
defauthenticate() {
String providerName = params.provider
if (StringUtils.isBlank(providerName)) {
thrownewOAuth2Exception("No provider defined")
}
log.debug "authenticate ${providerName}"String url = springSecurityOauth2BaseService.getAuthorizationUrl(providerName)
log.debug "redirect url from s2oauthservice=${url}"//You cannot use internal/local urls because of this lineif (!UrlValidator.instance.isValid(url)) {
flash.message ="Authorization url for provider '${providerName}' is invalid."
redirect(controller: 'login', action: 'index')
}
redirect(url: url)
}
...
It is possible/reasonable to omit the validation or make it configurable e.g. by injecting the validator?
The text was updated successfully, but these errors were encountered:
The default instance of
UrlValidator
prevents us to use intranet domain names, which are not compliant to url validator. For example dev.somewhere.local is invalid because of local is not valid TLD.It is possible/reasonable to omit the validation or make it configurable e.g. by injecting the validator?
The text was updated successfully, but these errors were encountered: