Hi All,
I am new to ACS/WAAD/AAL etc. having only discover this in the last month or so.
I am trying to build a login page that allows the user to select and IDP, in my demo I am using Google and WAAD tenant. Then the user can enter a login and a password and submit these for authentication. I have seen a sample that looks similar to what I think I need to do here "http://code.msdn.microsoft.com/AAL-Native-Application-to-f8971f47#content".
I have constructed a simple webform and configured ACS with a relying party that includes Google and my WAAD tenent as IDPs. When I test my application i get two different errors and I do not understand why.
The first error is "Data at the root level is invalid. Line 1, position 1." when I try to authenticate via WAAD Tenant.
The second error is "Data at the root level is invalid. Line 1, position 1." when I try to authenticate against Google.
The authentication code is below:
_authContext = new AuthenticationContext("https://littledeadbunny.accesscontrol.windows.net"); string enteredEmailDomain = result.Username.Substring(result.Username.IndexOf('@') + 1); IList<IdentityProviderDescriptor> idpdList = _authContext.GetProviders("http://littledeadbunny.com/NonInteractive"); foreach (IdentityProviderDescriptor idpd in idpdList) { if (String.Compare(result.IDP, idpd.Name, StringComparison.OrdinalIgnoreCase) == 0) { Credential credential; credential = new UsernamePasswordCredential(enteredEmailDomain, result.Username, result.Password); _assertionCredential = _authContext.AcquireToken("http://littledeadbunny.com/NonInteractive", idpd, credential); args.Result = result; return; } }
Any thoughts? is there something I have missed in ACS?
I have been looking for a solution for a number of days and would really appreciate some help.
Thanks.