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 )

11612 put(a) pogledan, 5 odgovor(a) 18.11.2013. 13:45:26Kreirao(la) bkkmono
bkkmono

bkkmono

18.11.2013. 13:45:26
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?
Ovaj sadržaj još nije ocijenjen. 
434 Reputacija 51 Ukupno objava
imarusic

imarusic

18.11.2013. 13:55:36
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.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
bkkmono

bkkmono

18.11.2013. 14:18:02
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>



Ovaj sadržaj još nije ocijenjen. 
434 Reputacija 51 Ukupno objava
mzilic

mzilic

18.11.2013. 15:17:34
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
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
bkkmono

bkkmono

18.11.2013. 15:39:30
Thank you for your suggestion. I will try to do it.
Ovaj sadržaj još nije ocijenjen. 
434 Reputacija 51 Ukupno objava