ASP.NET VB Web app using azure authentication - asp.net

I have a basic website created using VB.NET. I need to add authentication and, as we use Azure Active Directory, I thought I could connect it to that.
All I need to do is be able to have the username of the current user, so I can then turn on or off buttons etc depending who they are.
All the examples I can find are for ASP.NET Web applications.
How do I add to a standard site?
Thanks
Gareth

Related

Simplest way to integrate ADFS with ASP.NET web application

I have a simple 2-page ASP.NET application that is hosted as a 'azure website'. I want to make this application secure by integrating with my company's ADFS. What is the simplest way to integrate this app with ADFS. I don't want to go through ACS if I don't have to. It looks like it is possible to make the asp.net app talk to adfs directly using WIF.
Can someone confirm if this will work and share any pointers to get this working?
You are spot-on about not considering ACS.
The simplest way is to just let the tooling in Visual Studio 2013 wire it up for you.
Create a new ASP.NET Web Application project and in the new project dialog, click on the Change Authentication button.
Next, select the Organizational Accounts radio button, choose On-Premises in the drop-down, and fill in your On-Premises Authority and App ID URI.
Vittorio blogged about the full experience here if you need more detail.
You will have to substitute in the correct URL's for your Azure Website, but this should get you going in the right direction.

How to setup RIA Services to use an existing ASP.Net membership base

I'd like to make an OOB Silverlight app based on the Silverlight Business Application template in Visual Studio. The template uses the default ASP.Net membership provider. I understand how to use that to add users and roles, etc. I've found plenty of tutorials on that. What I'd like to be able to do, is configure the Silverlight template so that it uses an existing ASP.Net membership base. We'd like this app to have a companion website (ASP.Net based).
To clarify: We've been able to setup an ASP.Net website and have created a SQL database with the required tables (aspnet_Users, aspnet_Membership, etc.). I'd like to configure a Silverlight app to access the same users and roles that are in those tables.
Can anyone help me out in terms of what I'd need to put in the Web.config? Do I just need a connection string? I'm new to ASP.Net authentication, but I'd rather use what ASP.Net gives me out of the box than have to write my own authentication service. I feel like this should be really easy, and is just a matter of pointing the Silverlight app in the right direction.
I'd like to use Silverlight 5 and .Net 4.5 if I can but I don't mind using an older version of either if it makes things easier.
You can just point the connection string to the existing database.
From this answer:
You can point your connection string for authentication to a database that all application can access.
So if you have the default database that .NET creates, you can point your other application to that as well for authentication.

Offering all authentication mechanisms in an ASP.Net web application

Mine is a web product (delivered to a browser), being built on ASP.Net (Framework 4.0).
Most customers seek Single Sign On, such that their users should directly logon to the application on its invocation with the Windows or Active Directory login, they're using. Some other customers want the application to accept form based login credentials. So basically my web application should be able to adjust (configured) based on the customer's requirement. Their may be claims based authentication is some stray cases as well. I'd like to know the best way to achieve this in ASP.Net.
.NET open auth is your friend.
http://www.dotnetopenauth.net/
Then, there's active directory/LDAP:
http://www.codeproject.com/KB/system/everythingInAD.aspx#35
And your own provider + WinForms should be clear.

Is it possible to share an existing asp.net applications membership database with sharepoint 2010's, when using Forms based authentication

I am trying to integrate an existing asp.net application with sharepoint 2010. I would like to be able to have a logged in user on the application access a document library via an Iframe on the sharepoint 2010 site. I want to use FBA on sharepoint. Is it possible to share the membership database from the asp.net application with sharepoint? If not, what would be the best way to accomplish this?
The databases are identical so there is no reason you can't point the SharePoint FBA connection string to your existing database. However, I doubt the user will be transparently logged in.

Single Sign 0n between DotNetNuke, Classic ASP app, ASP.NET app

We run multiple apps to provide services to our members at our organization
1. DotNetNuke as CMS
2. Classic ASP custom app for membership management and event management
3. ASP.NET app for providing online learning
4. Wordpress blog
Can somebody please suggest a way to enable Single Sign On in this kind of an environment.
I am looking for a solution which would enable adding any kind of application easily to the SSO in the future.
We host most of the apps, but there are some being hosted outside our environment as well.
All members are customers in different locations.
THanks
You could use Live ID:
Windows Live ID with dotnetnuke:
http://www.datasprings.com/Resources/ArticlesInformation/DotNetNukewWindowsLiveAuthentication/tabid/828/language/en-US/Default.aspx
Windows Live ID with wordpress:
http://social.msdn.microsoft.com/forums/en-US/wliddev/thread/a34d1585-e602-4519-858c-0bb5ae02856d/
You could also use Open ID, the same as stackoverflow.
Live ID will be compatible with Open ID:
http://winliveid.spaces.live.com/
Have not been able to find a reference to use of Live ID with classic ASP.
You can use Windows Live ID to identify people with it.

Resources