Single Sign On using ADFS 2.0 [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How to put single sign on using adfs 2.0 (active directory federation services) give me the steps with examples..i use visual studio 2010 and linq for coding and my project is based on school management system.
If there is another way to put single sign on in my project with using concept of active directory then also tell me that method.with suitable example.
Is it possible to install adfs on local server.?
i try to install it on virtual private server but i fail.due to operating system version problem.
if it is possible then give me details about it.
Thanks in advance.!

Probably the shortest possible instruction would be
install ADFS 2 on one of your servers, configure it to use your Active Directory
Install WIF runtime and WIF SDK 4.0 on your dev machine (this assumes you use VS2010)
http://www.microsoft.com/en-us/download/details.aspx?id=17331
http://www.microsoft.com/en-us/download/details.aspx?id=4451
create an empty web application
set authentication mode to "Windows", add authorization rule that prevents unauthenticated users (deny users="?")
add an STS reference (right click on references and pick "Add STS Reference"), point to your ADFS metadata (https://your.adfs.address/FederationMetadata/2007-06/FederationMetadata.xml)
Go to ADFS and add a Relying party trust - provide the address of your appliaction (https://your.application.address)
However, most of these steps involve multiple actions where things go wrong. Do not be discouraged, in case of issues just ask questions.

Related

C# with SQL Server using Windows authentication [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm facing a problem developing the app for the client that uses a SQL Server with Windows authentication only, so the situation is that there is a number of Windows accounts in Active Directory that can access the database and some application are using those accounts.
My problem is I have to develop a C# application that has to get any modification in specific table with a SqlTableDependency the only way to access the database is by using an administrator account; is there a way to define any of the defined accounts to connect using Windows authentication for users to execute the app developed?
And many thanks.
You make this assertion about SqlTableDependency:
The only way to access the database is by using Administrator account
But that is not correct. ANY account can do this, no matter what kind of authentication it uses, if the required security permissions are granted. You will need to find out the exact permissions this item uses and communicate with your client about granting those permissions to their users.
At this point there's a good chance your client will get uncomfortable... they may not have realized what they were asking for! But that's okay. Now you can have a real conversation about what their needs are. Perhaps they need a special (sql-auth-based) service account for this. Or perhaps they want to change the architecture so this runs as a background task on the server. It doesn't matter: the important part is you and the client are now making better-informed decisions about the application.

How to implement ADFS authentication on MVC.NET Application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm trying to implement ADFS Login on a MVC application.
The ADFS service is from a third party company and the only thing I got from them is the Metadata URL. I've tried a lot of examples from internet, but any of them is working.
Can someone please tell me how I should do this, if I need something more besides the metadata link(?) or give me the link to a good tutorial to implement ADFS login.
I don't know a lot about ADFS services or authentication and this is my very first time asking something here.
To use ADFS, the client side must implement WS-Federation, SAML 2.0 or OpenID Connect.
OIDC is ADFS 4.0 only.
There is a NuGet OWIN WS-Fed package as well as one for OIDC.
The easiest way to do this in VS for a new MVC project is "Change Authentication" / "Work or School" / select "On-Premises" from the drop down.
Then enter the parameters from the metadata.
They will have to add your application to ADFS as a Relying Party.

Encrypting login data in a c# WinForms application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a number of projects developed in WinForms. Despite looking around on SO and other areas I've not really found a satisfactory answer.
The projects make use of the app.config and are deployed to multiple users using ClickOnce. Each physical install on a users machine will have both the deployed application as well as the app.config. The app.config holds credentials for a restricted account for a database.
Is it possible to encrypt data such as credentials for a Db connection in WinForms that is deployed to the masses? Some users work on laptops offsite, so a network connection wont always be available. I'm just trying to find out what the best practices are for securing a WinForms application might be in this scenario.
Of course you can save the credentials as an encrypted string in your app.config. SO provides some good examples on how to use the System.Security.Cryptography.Rijndael symetric algorithm.
This of course requires the same key to encrypt and decrypt the data. That key will be stored in the source code, and .NET sourcecode is not really save, everyone with the ability to use google and use a program with more than one button will be able to find it in the decompiled code and thus, it's only slightly more safe than just having the password not encrypted.
Most important is, that the credentials your app uses to access the database are only allowed to do what the app needs, so not like using SQL Management Studio to oben the DB and being able to reconfigure everything (Saw that once at a customer).

Create Setup project for MVC4 Application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have MVC4 web application and I need to make an exe installer to deploy the application and the DB on the customer's server
also application should be available online
Update: I have completed web application now i have to start for setup project
Publishing online will depend on the host - what they support but a good place to start would be to see if you can use the publishing wizard - right click on the web project and select publish. This requires some configuration but will work for Azure for example.
The msi/exe creation is altogether a more complex problem there are a number of options including installshield - I believe there is an installshield (light) setup project in visual studio. If you need something more advanced then there is the option of the paid for installshield but there is also the wix toolset http://wixtoolset.org which enables you to build msbuild installation packages. The learning curve is steep and the last time I used wix you weren't able to build a web installer out of the box - there were configuration options and additional tasks require before it would do this. That said it is possible to use Wix to build a very slick and quite powerful installer.

Host MVC web app without IIS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a Asp.net MVC 3 application which I want to give to a user to use without them having to host it in IIS to run.
What I would like to have is some sort of executable that they click or a service which will host the application and then they can use it from any browser on the network.
What are my options?
Have you looked into IIS Hostable Web Core?
This feature basically allows you to host the entire IIS functionality
within your own process. This gives you the power to implement
scenarios where you can customize entirely the functionality that you
want "your Web Server" to expose, as well as control the lifetime of
it without impacting any other application running on the site.
You can look into IIS Express http://learn.iis.net/page.aspx/868/iis-express-overview/ Although it is still IIS it's much lighter weight and might be what you need:
It doesn't run as a service or require administrator user rights to perform most tasks
IIS Express works well with ASP.NET and PHP applications
Multiple users of IIS Express can work independently on the same computer.
If the application is meant for production use, you need to host it under an IIS environment. IIS Express is intended as a development server and not for production use.
Otherwise, IIS Express is the way to go if you want someone else to work on it in a local development environment.
Take a look at the following example.
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host
http://owin.org/
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
http://blog.micic.ch/net/owin-and-razor-enabled-mvc-application-framework
Regards

Categories