Fwd: [cas-dev] X509 authentication + POST request to resource turns the request into a GET

16 views
Skip to first unread message

魏昕路

unread,
Nov 30, 2017, 9:31:27 PM11/30/17
to cas-...@apereo.org
Posted wrong maillist. Anyone met this?

---------- Forwarded message ----------
From: 魏昕路 <apple...@gmail.com>
Date: 2017-11-30 20:10 GMT+08:00
Subject: [cas-dev] X509 authentication + POST request to resource turns the request into a GET
To: CAS Developer <cas...@apereo.org>


I found old mails by searching "POST 302" and I guess I met the same problem.
See the old issue:

It is CAS 5.0. And I'm having trouble with the same issue. I enabled basic authentication by adding below lines to pom.xml  (https://apereo.github.io/cas/5.0.x/installation/Basic-Authentication.html)
<dependency>
  <groupId>org.apereo.cas</groupId>
  <artifactId>cas-server-support-basic</artifactId>
  <version>${cas.version}</version>
</dependency>

Then I tested the requests in postman. GET worked well but POST failed. Because cas changed the request to GET.

It would be worse when using HttpClient in java because users who use our REST API will get 302 code.

Is it fixed in 5.1.0 or 5.2.0? Or is there any workaround in the Java client code?

Thanks a lot!

--
You received this message because you are subscribed to the Google Groups "CAS Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-dev+u...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.

Reply all
Reply to author
Forward
0 new messages