Welcome! Log In Create A New Profile

Advanced

Re: Nginx with Java library

Patrick
May 23, 2019 10:04PM
On 2019-05-23 21:29, Jennie Jia wrote:
> Here is my code to do the logic, but I checking the java library
> provided by this nginx-clojure
> https://github.com/nginx-clojure/nginx-clojure/tree/master/src/java/nginx/clojure/java.
> I can not figure out how to get "cookie" header value from the http
> request ( it use NginxJavaRequest.java here. Any help are
> appreciated.!

> public Object[] invoke(Map<String, Object> request) throws IOException {
>
> NginxJavaRequest req = ((NginxJavaRequest)request);
>
> // TODO Need Figure out how to get Cookie from the request
//String encryptedCookie = req.getVariable("cookie");
String encryptedCookie = (String) ((Map)request.get(HEADERS)).get("cookie");


If all that is needed is the decrypted cookie contents, and the backend
is written in another language, consider porting the cookie decryption
code to that language as ONAP uses the SunJCE flavor of AES/CBC/NoPadding

Note that to decrypt the cookie, the ONAP crypto config needs to be ported to
the nginx-clojure app as well.


Patrick
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx with Java library

Jennie Jia May 21, 2019 04:56PM

Re: Nginx with Java library

Patrick May 21, 2019 08:28PM

RE: Nginx with Java library

Jennie Jia May 22, 2019 10:04AM

Re: Nginx with Java library

Patrick May 22, 2019 08:36PM

RE: Nginx with Java library

Jennie Jia May 23, 2019 05:30PM

Re: Nginx with Java library

Patrick May 23, 2019 10:04PM

RE: Nginx with Java library

Jennie Jia May 24, 2019 03:34PM

RE: Nginx with Java library

Jennie Jia May 24, 2019 06:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready