Posts

Azure B2C - Identity Experience Framework

Image
Azure B2C – why do I need that? Have you heard about Azure B2C? Yes? What about Azure B2C Identity Experience Framework? This is something I've had pleasure to play with a little bit, it is still in Preview but has a lot of benefits when you want to manage customer entities outside of your organization. Actually there’s a nice 'know-how' guide that I would recommend on reading available here . I was thinking whether I should start right of the bat with some custom scenarios but even now Identity Experience Framework still lacks detailed documentation so this time I'll to go high-level over the possibilities and structure of this platform. So... Identity Experience Framework  I assume you already know what B2C is used for and have some experience with built-in policies so I'll move right to the IEF part. Identity Experience Framework is Azure based orchestration platform to manage trust between entities using standard protocols like OAuth, SAML, OpenID, i...

CSOM upload file multiple versions

Recently my colleague had a problem with multiple versions being created while trying to upload file via CSOM and setting the metadata fields. Problem is that this is a two-step process. Using SSOM it would be fairly easy to upload and modify data with one update, but with the client side object model the file must exist beforehand we modify its data. There’s a possible workaround to create just one version using check-in method. Below code snippet demonstrates how CheckOut and CheckIn allow to upload and modify file in one process. public void UploadDocumentContentStream(ClientContext ctx, string libraryName, string filePath) { Web web = ctx.Web; using (var fs = new FileStream(filePath, FileMode.Open)) { var flciNewFile = new FileCreationInformation { ContentStream = fs, Url = Path.GetFileName(filePath), Overwrite = true }; List docs = web.Lists.GetByTitle(libraryName); Microsoft.SharePoint.Cl...