I am working on a Windows 10 Universal App(HTML+WinJS). I need to do Sharepoint authentication in the same. I have created a Windows runtime component to write C# code for authentication. I refered below link: https://coderwall.com/p/ho2uwq/authentication-in-sharepoint-2013-using-c-csom-client
Now my problem is that When we use this C# code in ‘Windows Runtime component’ it does not recognize SecureString class which is included in ‘System.Security.Cryptography’ namespace used for creating secure password and pass it to the SharePointOnlineCredentials’ authentication service. Because System.Security.Cryptography is included in the full .NET (desktop .NET), and the .NET for UWP does not have it.
How to proceed now?
Probably now we have a nuget package which you can refer and SecureString will be available in UWP app. https://www.nuget.org/packages/System.Security.SecureString
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With