Skip to main content

Posts

Showing posts from October, 2018

underscore.js extend

underscore.js is a javascript utility library. Let us understand the extend method of this very useful library. _.extend is for extending a given object with all the properties of the passed-in object(s) Here is an example, we have three objects aObj, bObj, cObj and we want to combine them into single object. Using _.extend is a simple way of combining these objects. And before trying out the example don't forget to import the underscore.js library Now access the source code of underscore.js and look for the extend method. This is how it looks like This uses functional programming style.  createAssigner takes two inputs and returns a function. The two inputs are (1) keysFunc  (2) defaults Since it is returning a function, so a closure is formed, and the returned function remembers the two inputs Looking at the source code from the line (keys = keysFunc(source)) it is evident that keysFunc is a function itself. And

Azure Active Directory B2B

This is an extension of Azure Active Directory Service. Simplest way to think is if the organization wants to collaborate with another organization by sharing their applications, then the IT has to think of a way to provide access to the users. Also policies have to be set to remove the access and restrictions around the access to applications. Azure AD B2B does this for you. Users will be sent a invite using which they can use their own preferred account to access the applications. Users can use their social networking account to access the applications, while Azure AD strong policies take care of the applications that can be accessed by users. If the organizations want to use their corporate accounts, then the users need to create a password first and use their corporate account. As per the Microsoft in the future they will collaborate for SSO so that users do not need to create new passwords. Azure AD B2B will also allow users to be added to administrator groups.