Extended the example component to show how to use the identity provider and to simulate the user login.