Hi there i'm beginner in using moodle i want my custom website which is on ASP.net can anyone guide me that how can i add SSO feature for my website.
Thank you in advance.
You've got several options for Moodle. Depends on what authentication method you are using in your asp.net project?
These come with Moodle and might be suitable for .net:
LDAP - https://docs.moodle.org/30/en/LDAP_authentication
NTLM - https://docs.moodle.org/30/en/NTLM_authentication
Or use SAML, but you will need to install the SAML plugin and install simplesamlphp on your web server.
https://moodle.org/plugins/auth_saml
Related
I already have more than 10 applications developed using ASP.NET. There are different versions for frameworks 2.0, 3.5 and 4. Currently I need to apply single sign on on all of my applications using Windows Azure Active Directory SSO. But I do not know what the code or library should be added to my application to be configured with the Azure SSO. Do I need to re-develop my application or recreate it with different versions? Does anyone know what I should do?
Different .NET frameworks should not be a problem. You should be able to implement SSO for all of these applications, but you will need to add it individually to each one. You will need to add it in the code of the application itself and then register each application to your tenant.
Here is a very good tutorial that shows you step by step how to add SSO to a published web application in Azure using OpenID Connect. You can follow the steps exactly and build their demo version to test it out, or follow their steps at the bottom that show how to implement SSO in your own application.
https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect
Here is the official Microsoft documentation, which also describes how to implement SSO: https://learn.microsoft.com/en-us/azure/active-directory/active-directory-saas-custom-apps
Alternatively, if you want to use a library that is already integrated with Visual Studio, you can go to Project > Add Connected Service > Authentication with Azure Active Directory.
The "SSO" in this case refers to SAML. To do SAML in C#, look into Windows Identity Foundation (WIF), which includes some SAML support.
Note that doing SAML SSO involves more than just dropping in the right kind of username/password field. You need to have additional special pages to handle certain redirects, and have a way to store exchange saml metadata with your Azure AD identity provider. It can be painful.
I'm working on a project using ASP.Net MVC5 which also includes a Web API. The API will be for internal use only. I'm using the OWIN library to provider authentication.
I'm having a difficult time figuring out how to correctly implement authentication through the API. I was planning on using OAuth 2.0 but the problem with OAuth is that the user needs to login through a browser page instead of a native login screen. So I was wondering if it is possible to somehow skip the browser.
I've found this example which creates it's own OAuth Authorization Server. But it doesn't show how to make the login native.
If it's a highly trusted client, then you can use the OAuth2 resource owner password flow. You can look at the VS2013 SPA template and/or read on this post:
http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/
You could use Thinktecture.IdentityServer v2 as a light-weight security token service.
https://github.com/thinktecture/Thinktecture.IdentityServer.v2
You will need to create a WOPI host, which is basically a software solution that can take advantage of the browser-based Office(office web).
Create a custom WOPI host and configure it to use Office Web Apps Server to provide the browser-based file viewing and editing for Office files.
Nice sample on Microsoft MSDN
everybody:) I need to implement OAuth registration on my project, but I don't have a time to learn whole protocol, and write low-level code. Is there any library for .NET that can make it easier? I wanna make OAuth registration for Facebook and some not so famous portals. Thanks for any help!
The ASP.NET MVC4 project templates include user registration using OAuth authentication servers out-of-the-box for Facebook, Google, Twitter.
Aside from that, you can try looking at DotNetOpenAuth
I want to integrate moodle with my asp.net site. Is there any way to follow so that We can access moodle feature on my dot net site? Also can moodle work with sql server database?
Yes you can integrate moodle with .net application using webservices.
because moodle expose the same methods using several protocols that can be accessed by .net or any application.
here is a useful link if that helps:
https://delog.wordpress.com/2010/09/08/integrating-c-app-with-moodle-2/
According to the documentation Moodle is written in PHP, so no you will not be able to easily integrate it into your .Net site. However, there is no reason why you couldn't host the Moodle application as a virtual directory/application/sub-domain as IIS will allow you to host PHP applications.
Also, yes you can use MS SQL Server with Moodle.
A good overview of Moodle can be found here.
I need to use google accounts in my ASP.NET application. Did somebody do it? I have many questions about it
StackOverflow does it. Use the OAuth/OpenID libraries for .NET - DotNotOpenAuth.