title: UserLoginInfo - retrieving info from a sealed class
body: <p>I am in the process of making an EF/MVC application which utilizes OAuth2/Owin for third party logins in addition to local user creation. Some of these third parties have APIs allowing you to further personalize the experience by retrieving data specific to that user with some data based on their returned ID. </p>
  
  <p>For instance, I've integrated a Steam One-click login, and using the returned 64-bit user ID which is part of the ProviderKey stored after successful authentication, I can then start pulling information about that user and start using/displaying that data to help streamline or otherwise enhance the application.</p>
  
  <p>My question is how I can retrieve this information that is being stored. using the default user authentication functionality. I've located exactly what I'm looking for, which is </p>
  
  <pre><code>    UserLoginInfo
      //This is an extension of 
      Microsoft.AspNet.Identity
  </code></pre>
  
  <p>It is a sealed class which holds a LoginProvider and Providerkey (the latter is prize I'm seeking). These are stored with a foreign key of sorts representing the User ID.</p>
  
  <p>This may be a terribly amateur question, but how can I obtain information from this UserLoginInfo class?</p>
  
  <p>For reference, here is a quick article on how this is set up: <a href="http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on" rel="nofollow">http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on</a> ...in the event you're not familiar with what I'm babbling about.</p>
  
  <p>I sincerely appreciate any guidance on this that can be provided. If I've been unclear at all please let me know so I can explain better.</p>
  
  <p>Cheers</p>
  
  <p>Edit 6/4/15: 
  Another example, since this is fairly specific and hasn't yielded a single reply, would be the user token for Twitter, Google+, or Facebook, all of which are included in the default Third-party login of the MVC 4.5 EF Authentication platform.  </p>
  
  <p>If you use the default connection string when creating the database context, a separate datastore is created which will hold user logins, claims, roles, etc. Specifically, the UserLogins will hold this information, with each user having the ability to have all of their accounts associated to a profile (UserID for <em>my</em> website, i.e. there will be an entry for each of these social media sites with a common UserID). </p>
  
  <p>Since the pre-built Authorization libraries used for much of this functionality are sealed, I realize there are some barriers. I'm trying to find an elegant way of retrieving this <em>one</em> piece of information for each of my users so that I can have more engaging content, but searching the web I have found <em>very</em> little information relating to this subject (which is not terribly surprising considering the age of this code and functionality). Does anyone know of a resource that might aid in tracking down how to make a customized version of the user management that might allow for a more direct control of the user information?</p>