Exemplo n.º 1
0
        public override GenericAuth.AuthenticationConclusion createConclusion(
            OAuth20.AuthorizationResponse authorizationResponse,
            OAuth20.UserProfileResponse userProfileResponse)
        {
            var WBUserProfileResponse = (WBUserProfileResponse)userProfileResponse;
            var conclusion            = new GenericAuth.AuthenticationConclusion();

            conclusion.channel = authorizationResponse.SVX_sender;
            var UserProfile = new WBUserProfile();

            UserProfile.UserID               = WBUserProfileResponse.id;
            UserProfile.Email                = "";
            UserProfile.FullName             = WBUserProfileResponse.name;
            conclusion.userProfile           = UserProfile;
            conclusion.userProfile.Authority = "Weibo.com";
            return(conclusion);
        }
Exemplo n.º 2
0
        public override GenericAuth.AuthenticationConclusion createConclusion(
            OAuth20.AuthorizationResponse authorizationResponse,
            OAuth20.UserProfileResponse userProfileResponse)
        {
            var UserProfileResponse = (UserProfileResponse)userProfileResponse;
            var conclusion          = new GenericAuth.AuthenticationConclusion();

            conclusion.channel = authorizationResponse.SVX_sender;
            var UserProfile = new UserProfile();

            UserProfile.UserID               = UserProfileResponse.id;
            UserProfile.Email                = UserProfileResponse.emailAddress;
            UserProfile.FullName             = UserProfileResponse.firstName + " " + UserProfileResponse.lastName;
            conclusion.userProfile           = UserProfile;
            conclusion.userProfile.Authority = "LinkedIn.com";
            return(conclusion);
        }
Exemplo n.º 3
0
        public override GenericAuth.AuthenticationConclusion createConclusion(
            OAuth20.AuthorizationResponse authorizationResponse,
            OAuth20.UserProfileResponse userProfileResponse)
        {
            var fbUserProfileResponse = (FBUserProfileResponse)userProfileResponse;
            var conclusion            = new GenericAuth.AuthenticationConclusion();

            conclusion.channel = authorizationResponse.SVX_sender;
            var fbUserProfile = new FBUserProfile();

            fbUserProfile.UserID             = fbUserProfileResponse.id;
            fbUserProfile.Email              = fbUserProfileResponse.email;
            fbUserProfile.FB_ID              = fbUserProfileResponse.id;
            fbUserProfile.FullName           = fbUserProfileResponse.name;
            conclusion.userProfile           = fbUserProfile;
            conclusion.userProfile.Authority = "Facebook.com";
            return(conclusion);
        }