MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 4745 time(s), 5 post(s) 11/18/2013 1:45:26 PMby bkkmono
bkkmono

bkkmono

11/18/2013 1:45:26 PM
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?
This content has not been rated yet. 
434 Reputation 51 Total posts
imarusic

imarusic

11/18/2013 1:55:36 PM
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.
This content has not been rated yet. 
3016 Reputation 428 Total posts
bkkmono

bkkmono

11/18/2013 2:18:02 PM
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>



This content has not been rated yet. 
434 Reputation 51 Total posts
mzilic

mzilic

11/18/2013 3:17:34 PM
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
This content has not been rated yet. 
2218 Reputation 300 Total posts
bkkmono

bkkmono

11/18/2013 3:39:30 PM
Thank you for your suggestion. I will try to do it.
This content has not been rated yet. 
434 Reputation 51 Total posts