daltoncabrera / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Re-use Passport Online Authentication Process ?? #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was hoping we could use the authentication modules from msnp-sharp in my 
project.  We need to connect to Microsoft Dynamics Online, which uses Passport 
authentication.

As part of the Dynamics SDK, they provide a DLL (msidcrl40.dll) which performs 
the "heavy lifting" and handles the Passport authentication.

http://msdn.microsoft.com/en-us/library/bb955659.aspx

We basically call the Logon function which will call:

1. Initialize(environment = "Production")
2. CreateIdentityHandle(username)
2a. SetCredentials(identityHandle, password)
3. LogonPassport(policy = "from Dynamics Web Services")
3a. LogonIdentity
3b. GetAuthState( returns a bunch of args )
4. LogonService(partner = "crm.dynamics.com", policy)

Looking at the logic in the SingleSignOn.cs, it looks like some of this might 
overlap.  Should we be able to call the same passport service using 
SingleSignOn.cs to get an authenticated Passport Ticket ?  This would be great!

Thanks.

Stéphane 

Original issue reported on code.google.com by Stephane...@gmail.com on 17 Aug 2011 at 10:47

GoogleCodeExporter commented 9 years ago
The protocol might be similar, but before any investigation, I can't draw the 
conclusion. You can attach a fiddler trace for us to analyze.

Original comment by freezing...@gmail.com on 24 Aug 2011 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 24 Aug 2011 at 9:51