ServiceStack: Get email from auth session when authenticating with Google
问题 I am authenticating users via GoogleOpenIdOAuthProvider. I need to access the email address of the user that logged in. I have attempted to implement the Using Typed Sessions in ServiceStack code as-is. So, I created a base class that my service inherits from: public abstract class AppServiceBase : Service { //private CustomUserSession userSession; protected CustomUserSession UserSession { get { return base.SessionAs<CustomUserSession>(); } } } public class CustomUserSession : AuthUserSession