Posted wrong maillist. Anyone met this? ---------- Forwarded message ---------- From: 魏昕路 <[email protected]> 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 <[email protected]>
I found old mails by searching "POST 302" and I guess I met the same problem. See the old issue: https://groups.google.com/forum/#!searchin/jasig-cas- dev/post$20302|sort:date/jasig-cas-dev/39VDp0Qo_o0/sfiQFExQZ2UJ 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 [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAKsdULC%3DRx2SOpGnjhFhsAYyWR5j-9zEg%3D2WWKnBiAJGweeBag%40mail.gmail.com.
