Mono Support How could I add Hotmail or MSN to MonoX's Social Login? 

Viewed 11742 time(s), 5 post(s), 11/18/2013 1:45:26 PM - by bkkmono
11/18/2013 1:45:26 PM
434 Reputation 51 Total posts

Hello,

I want to add Hotmail or MSN to MonoX's Social Login instead of LinkedIn Login.

Could I do this in MonoX?

If yes, How could I do it?

1
11/18/2013 1:55:36 PM
3016 Reputation 428 Total posts

Hi,

More details on social auth can be found  here and yes, social auth can work with MSN. MonoX social login by default supports four social network providers. In order to work with MSN you need to ensure that you have Consumer key and Consumer secret codes.

Regards.

2
11/18/2013 2:18:02 PM
434 Reputation 51 Total posts

In web.config, I will add code like this: 

<add WrapperName="MSNWrapper" ConsumerKey="API Key from MSN" ConsumerSecret="Secret Key from MSN" />
What is WrapperName for MSN Login?

And since I cannot access Behind Code of LoginSocial.ascx, 
How would I add MSN button in LoginSocial.ascx?

<div class="social-button-holder">
            <asp:LinkButton ID="btnMSN" runat="server" CausesValidation="false" OnClick="btn_Click" class="msn" CommandArgument="MSN">
                <img src="<%= ResolveUrl(MonoSoftware.MonoX.Paths.App_Themes.img.Sn.msn_login_png) %>" alt="<%= DefaultResources.LoginSocial_LoginWithMSN %>" />
                <span><%= DefaultResources.LoginSocial_LoginWithMSN %></span>
            </asp:LinkButton>
</div>



3
11/18/2013 3:17:34 PM
2218 Reputation 300 Total posts

What is WrapperName for MSN Login?
MSNWrapper is the name of the wrapper.

And since I cannot access Behind Code of LoginSocial.ascx,
How would I add MSN button in LoginSocial.ascx?
You don't need access to the source code if you use the same OnClick event handler as the existing providers. If you just set the CommandArgument to MSN the desired provider will be initialized in the code behind. You should just inherit the existing LoginSocial control and replace the references to point towards your custom control.

Regards,
Mario

4
11/18/2013 3:39:30 PM
434 Reputation 51 Total posts

Thank you for your suggestion. I will try to do it.

5
This is a demo site for MonoX. Please visit Mono Software for more info.