OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
869 stars 560 forks source link

TokenCredentials + Kerberos Service Token #508

Open acaride opened 8 years ago

acaride commented 8 years ago

Is it posible to authenticate with the EWS using a Kerberos Service Ticket?? I need this because i have a Single Sign On architecture in my web application using the SPNEGO authenticate negotiation process.

Scenario: 1 - Client: I am Alejandro and i need a Ticket to get tickets (TGT) 2 - KDC: here is a TGT (if you can decrypt this response with your password hash) 3 - Client: Here is my TGT, give me a Service Ticket for the EWS 4 - KDC: Here is your Service Ticket 5 - Me: Here is my Service Ticket, Authenticate me ! -> new TokenCredentials(serviceTicket) 6 - EWS: Great, everything is ok ! Proceed.

Thanks in advance!

gokhanmansur commented 6 years ago

In HttpClientWebRequest class I see that kerberos is disabled : "// Disable Kerberos in the preferred auth schemes - EWS should usually allow NTLM or Basic auth"

Is it possible to enable kerberos authentication or is there any other solution ?

srinivasiyermv commented 5 years ago

How to use EWS Java API for Kerberos authentication ? We are using EWS Java API 2.0 . But there is no example where we could use it for Kerberos Authentication . Is this still open ?

accessbalaji commented 5 years ago

I am also still searching for a solution for JAVA API with kerberos authentication for connecting EWS

shimi-abdelouahad commented 2 years ago

there is any news about kerberos authentication with EWS API?