From dev-return-7654-archive-asf-public=cust-asf.ponee.io@shiro.apache.org Mon Mar 19 17:11:28 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 83DC7180647 for ; Mon, 19 Mar 2018 17:11:27 +0100 (CET) Received: (qmail 23301 invoked by uid 500); 19 Mar 2018 16:11:26 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 23286 invoked by uid 99); 19 Mar 2018 16:11:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2018 16:11:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4A90D1A0795 for ; Mon, 19 Mar 2018 16:11:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.513 X-Spam-Level: ** X-Spam-Status: No, score=2.513 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jbyeRugR5sod for ; Mon, 19 Mar 2018 16:11:21 +0000 (UTC) Received: from n2.nabble.com (n2.nabble.com [162.253.133.85]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3DFEA5F178 for ; Mon, 19 Mar 2018 16:11:21 +0000 (UTC) Received: from static.162.253.133.85.macminivault.com (localhost [127.0.0.1]) by n2.nabble.com (Postfix) with ESMTP id 25E553A06ABC for ; Mon, 19 Mar 2018 09:11:15 -0700 (MST) Date: Mon, 19 Mar 2018 09:11:15 -0700 (MST) From: nitincn To: dev@shiro.apache.org Message-ID: <1521475875151-0.post@n2.nabble.com> In-Reply-To: References: <1520911872586-0.post@n2.nabble.com> <1520955149224-0.post@n2.nabble.com> <1520958417639-0.post@n2.nabble.com> <1520992547053-0.post@n2.nabble.com> <1521036416726-0.post@n2.nabble.com> Subject: Re: Not ale to get the Subject second time after authentication. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Brian, Thanks for heads up. I have added Session Id got from shiro auth provider as cookie to request header. HttpGet getmethod = new HttpGet("http://localhost:8080/shiroauthproviderapp/auth/getalluser"); getmethod .setHeader("Authorization", "bearer " + _session_id); //not necessary getmethod .setHeader("Cookie", "keymanager=" + _session_id); // JSESSIONID And modified Shiro.INI - cookie = org.apache.shiro.web.servlet.SimpleCookie cookie.name = keymanager sessionManager.sessionIdCookie = $cookie So, now I'm able get the Subject and permission lists. Please let me know if I'm wrong. Thanks -- Sent from: http://shiro-developer.582600.n2.nabble.com/