Giter VIP home page Giter VIP logo

acoudene / dotnetcorewcfjwt_samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmulkern/dotnetcorewcfjwt_samples

0.0 0.0 0.0 33 KB

Code for Authentication of a .Net Core WCF Client using a Json Web Token (JWT) as a BearerToken to a WCF Service

Home Page: https://medium.com/@tadhg.j.mulkern/using-a-bearer-token-in-net-core-with-wcf-part-1-8db2c54113f8

License: Apache License 2.0

C# 100.00%

dotnetcorewcfjwt_samples's Introduction

Code for Authentication of a .Net Core WCF Client using a Json Web Token (JWT) as a BearerToken to a WCF Service

This sample code is used for an article on Medium.com - Using a Bearer token in .Net Core with WCF Part 1 and Part 2

Build and Installation instructions

You will need Visual Studio 2017 with the latest .Net Core to build the WcfClient code, .Net Framework 4.6.2 (or greater) to build the Wcf.Contract (.Net Standard) and the WcfService

Make sure you checkout the whole repository, as both the WcfClient and the WcfService depend on the Wcf.Contract output

Install the Self-Signed Certicate (https://github.com/tmulkern/dotnetcorewcfjwt_samples/blob/master/WcfClient/WcfClient/MyCA.pfx) in your Local Machine Keystore under "Personal" for the WcfService and make sure the certificate is in the output directory for the WcfClient (when build)

As there is an dependancy on Wcf.Contract, make sure that it is built first

A Note on WcfClient

The WcfClient creates and signs it's own JWT security token using the Self-Signed Certificate, in reality the JWT security token would be signed by an external IdP (Like ADFS). In which case the JWT encoded string returned from the IdP would be used to created the channel, or the WcfClient might recieve a SAML Security token from the IdP and exchange it for a JWT security token.

dotnetcorewcfjwt_samples's People

Contributors

tmulkern 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.