[
https://issues.apache.org/jira/browse/KNOX-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18042207#comment-18042207
]
ASF subversion and git services commented on KNOX-3192:
-------------------------------------------------------
Commit bcd24baee4aa6d002d0e478f3357bb65d3a4dd36 in knox's branch
refs/heads/dependabot/maven/org.bouncycastle-bcpkix-jdk18on-1.79 from hanicz
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=bcd24baee ]
KNOX-3192: Check for HttpsURLConnection before cast (#1099)
> RemoteAuthProvider should support non-ssl url
> ---------------------------------------------
>
> Key: KNOX-3192
> URL: https://issues.apache.org/jira/browse/KNOX-3192
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Sandeep More
> Assignee: Tamás Hanicz
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> `remote.auth.url` currently needs to be HTTPS if HTTP is used then the
> following exception is thrown
> {code:java}
> knox Caused by: java.lang.ClassCastException: class
> sun.net.www.protocol.http.HttpURLConnection cannot be cast to class
> javax.net.ssl.HttpsURLConnection (sun.n │
> │ knox at {code}
>
> This was the configuration used:
> {code:java}
> <provider>
> <role>authentication</role>
> <name>RemoteAuthProvider</name>
> <enabled>true</enabled>
> <param>
> <name>remote.auth.url</name>
>
> <value>http://www.local.com:8443/gateway/knoxsso/auth/api/v1/pre</value>
> </param> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)