You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "bjoern@bittins.de" <bj...@bittins.de> on 2013/11/21 10:50:06 UTC

[Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)

Hi@all!

I'm very new to Axis2 and hope to get some help on this mailing list. Currently
I have to maintain a Java backend component which connects to SharePoint systems
using Axis2. The latest task is to connect to a SharePoint 2013 which uses ADFS
(a FedAuth cookie) to authenticate users. This FedAuth cookie is obtained from
an identity provider which uses (as far as I know) NTLM for authentication.
Could anyone give me a hint of how to obtain that FedAuth cookie and use it with
the SharePoint stub objects (Lists, Webs, Copy) created with Axis2. If you need
any further information I will try to provide these as soon as possible. Thanks!

Best regards
Bjoern

AW: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Dear Bjoern

Could you solfe your problem?
If not – I do not have the wonder solution.
But as a share point server is a Microsoft type server
it could help to first do the same using a Microsoft sw approach then study the protocol used and then implement the axis2 client if any toward this share point server.

Josef

Von: bjoern@bittins.de [mailto:bjoern@bittins.de]
Gesendet: Montag, 25. November 2013 12:05
An: Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco); java-user@axis.apache.org
Betreff: RE: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)

Dear Yshwanth.

Thanks for your immediate reply. I also found this site during my research. The backend is currently able to authenticate via NTLM directly against the target SharePoint system. Unfortunately with the new SharePoint target system, we cannot authenticate directly. We have to authenticate against a dedicated federation server to get a FedAuth cookie, pass this on to the stubs for communication/authentication with the target SharePoint.
And I really struggle getting this cookie and passing it on. I guess I have to use the HttpClient with NTLM support to get the FedAuth cookie but I have no clue how to extract the cookie from there and provide it, for example, to a Lists stub that is  used to communicate with the SharePoint. Has anybody already tried to connect to a SharePoint share that uses authentication via federation/FedAuth cookie?

Best regards
Bjoern
"Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco)" <yr...@cisco.com>> hat am 21. November 2013 um 21:15 geschrieben:
Bjoern,

I have not used NTLM but I do see this documentation on Apache Axis website: http://axis.apache.org/axis2/java/core/docs/http-transport.html#preemptive_auth
Hope it is what you need…

Sincerely, Yashwanth
Technical Architect, EBIS

From: bjoern@bittins.de<ma...@bittins.de> [mailto:bjoern@bittins.de]
Sent: Thursday, November 21, 2013 1:50 AM
To: java-user@axis.apache.org<ma...@axis.apache.org>
Subject: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)


Hi@all!

I'm very new to Axis2 and hope to get some help on this mailing list. Currently I have to maintain a Java backend component which connects to SharePoint systems using Axis2. The latest task is to connect to a SharePoint 2013 which uses ADFS (a FedAuth cookie) to authenticate users. This FedAuth cookie is obtained from an identity provider which uses (as far as I know) NTLM for authentication. Could anyone give me a hint of how to obtain that FedAuth cookie and use it with the SharePoint stub objects (Lists, Webs, Copy) created with Axis2. If you need any further information I will try to provide these as soon as possible. Thanks!

Best regards
Bjoern



RE: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)

Posted by "bjoern@bittins.de" <bj...@bittins.de>.
Dear Yshwanth.

Thanks for your immediate reply. I also found this site during my research. The
backend is currently able to authenticate via NTLM directly against the target
SharePoint system. Unfortunately with the new SharePoint target system, we
cannot authenticate directly. We have to authenticate against a dedicated
federation server to get a FedAuth cookie, pass this on to the stubs for
communication/authentication with the target SharePoint.
And I really struggle getting this cookie and passing it on. I guess I have to
use the HttpClient with NTLM support to get the FedAuth cookie but I have no
clue how to extract the cookie from there and provide it, for example, to a
Lists stub that is  used to communicate with the SharePoint. Has anybody already
tried to connect to a SharePoint share that uses authentication via
federation/FedAuth cookie?

Best regards
Bjoern

> "Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco)"
> <yr...@cisco.com> hat am 21. November 2013 um 21:15 geschrieben:
> 
> 
>  Bjoern,
> 
> 
> 
>  I have not used NTLM but I do see this documentation on Apache Axis
> website:<http://axis.apache.org/axis2/java/core/docs/http-transport.html#preemptive_auth>
> 
>  Hope it is what you need…
> 
> 
> 
>  Sincerely, Yashwanth
> 
>  Technical Architect, EBIS
> 
> 
> 
>  From: bjoern@bittins.de [mailto:bjoern@bittins.de]
>  Sent: Thursday, November 21, 2013 1:50 AM
>  To: java-user@axis.apache.org
>  Subject: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)
> 
> 
> 
>  Hi@all!
> 
>  I'm very new to Axis2 and hope to get some help on this mailing list.
> Currently I have to maintain a Java backend component which connects to
> SharePoint systems using Axis2. The latest task is to connect to a SharePoint
> 2013 which uses ADFS (a FedAuth cookie) to authenticate users. This FedAuth
> cookie is obtained from an identity provider which uses (as far as I know)
> NTLM for authentication. Could anyone give me a hint of how to obtain that
> FedAuth cookie and use it with the SharePoint stub objects (Lists, Webs, Copy)
> created with Axis2. If you need any further information I will try to provide
> these as soon as possible. Thanks!
> 
>  Best regards
>  Bjoern
> 


RE: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)

Posted by "Yashwanth Rajaram -X (yrajaram - ZENSAR TECHNOLOGIES INC at Cisco)" <yr...@cisco.com>.
Bjoern,

I have not used NTLM but I do see this documentation on Apache Axis website: http://axis.apache.org/axis2/java/core/docs/http-transport.html#preemptive_auth
Hope it is what you need…

Sincerely, Yashwanth
Technical Architect, EBIS

From: bjoern@bittins.de [mailto:bjoern@bittins.de]
Sent: Thursday, November 21, 2013 1:50 AM
To: java-user@axis.apache.org
Subject: [Axis2] Axis2 with Secure SharePoint 2013 (ADFS / FedAuth cookie)


Hi@all!

I'm very new to Axis2 and hope to get some help on this mailing list. Currently I have to maintain a Java backend component which connects to SharePoint systems using Axis2. The latest task is to connect to a SharePoint 2013 which uses ADFS (a FedAuth cookie) to authenticate users. This FedAuth cookie is obtained from an identity provider which uses (as far as I know) NTLM for authentication. Could anyone give me a hint of how to obtain that FedAuth cookie and use it with the SharePoint stub objects (Lists, Webs, Copy) created with Axis2. If you need any further information I will try to provide these as soon as possible. Thanks!

Best regards
Bjoern