Code Monkey home page Code Monkey logo

kombit-web-net's Introduction

kombit-web-net

Sample .Net Web Application using Context Handler

Document Reference: D.03.08.00010

Introduction

This guide describes how to configure the sample .Net web application using Context Handler for login.

In the KOMBIT Støttesystemer information model, a web application that authenticates users based on an assertion issued by Context Handler (CH) is referred to as a Brugervendt system. In the following guide the terms Brugervendt system and web application will be used interchangeably.

After completing this guide, the .Net-based sample web application will be configured and ready to be used.

It is assumed that the reader is a .Net-developer knowledgeable in the technologies used to develop this .Net-based sample, including:

  • C#
  • Microsoft.Net framework v4.5
  • Microsoft Windows Server Operating System
  • Microsoft Internet Information Systems (IIS)
  • HTTP and HTTPS
  • X509v3 Certificates

Overview Of The Sample .Net Web Application

The .Net sample web application is based on the open source project OIOSAML.Net

The WebsiteDemo in OIOSAML.Net is used to demonstrate how to send a SAML2.0 AuthRequest, how to receive, and how to process a SAML2.0 response containing a SAML2.0 assertion.

This guide explains how to configure the sample web application (websitedemo) based on a SAML2.0 metadata document from the identity provider with which the sample web application will be used. In this sample, the identity provider is the Context Handler.

In this guide the metadata-file for the KOMBIT Støttesystemer Context Handler in the project environment is used.

Setup

To use this sample do the following:

  1. Unpack the provided zip-file kombit-web-net.zip to C:\kombit-web-net.
  2. Open C:\kombit-web-net\Kombit.Samples.CH.WebsiteDemo.sln in Visual Studio, and build the solution.
  3. Make sure an SSL certificate that covers the DNS name claimapp.projekt-stoettesystemerne.dk is present in LocalMachine\My certificate store.
  4. Open the Hosts-file, and map the DNS name claimapp.projekt-stoettesystemerne.dk to localhost.
  5. Create a new IIS web application:
    1. The Site name should be claimapp.projekt-stoettesystemerne.dk
    2. The Physical pathshould be C:\kombit-web-net\Kombit.Samples.CH.WebsiteDemo
    3. The Binding type should be HTTPS
    4. The Host name should be claimapp.projekt-stoettesystemerne.dk
    5. Select an appropriate SSL certificate, that matches the host name chosen in the previous step
  6. Grant the application pool identity for the web application read and execute permissions to C:\kombit-web-net
  7. Import the certificate C:\kombit-web-net\Certificates\saml.claimapp.projekt-stoettesystemerne.dk.p12 to LocalMachine\My.
  8. Assign the application pool identity for the web application read permissions to the private key for the certificate imported in the previous step.
  9. Open a browser and point it to https://claimapp.projekt-stoettesystemerne.dk
  10. Click the Go to My Page to login using the Context Handler.

kombit-web-net's People

Contributors

dependabot[bot] avatar strandbygaard avatar thuannguy avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.