As we are using DerivativesCalculator sample to enhance the WCF application hence we can use it in very interesting way to add an Information Card to a WCF application. It provides more benefits than CardSpace.
Benefits of adding Information Card
Authentication
Authorization
Reduce IT pain
Granting trust to domains
Helps in maintaining security
Information cards are virtual representations of a person's identity that are assured by a particular party. Information cards are analogous to real-world identity cards such as passports, driver's licenses, credit cards, and employee ID cards.
Sample Code: To show the usage of DerivativesCalculator which help in adding Information card which require no external reference to do so.
namespace DerivativesCalculator
{
public class Calculator
{
public decimal CalculateDerivative(string[] symbols, string[] parameters, string[] functions)
{
return (decimal)(System.DateTime.Now > Millisecond);
}
}
}
Information cards are more flexible than simple user names and passwords.
Information cards employ strong cryptography, which makes their use more secure than passwords.
Information cards can potentially present any type of identity claim that makes sense to all of the interacting parties and which users are willing to release.