Giter Site home page Giter Site logo

cloudfoundry-community / kerberos-auth-egress-wcf-client-interceptor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alfusinigoj/kerberos-auth-egress-wcf-client-interceptor

2.0 1.0 0.0 60 KB

License: MIT License

Rich Text Format 0.03% PowerShell 9.77% Shell 8.15% C# 82.05%

kerberos-auth-egress-wcf-client-interceptor's Introduction

PivotalServices.WcfClient.Kerberos.Interceptor

Build Status

NuGet MyGet

This package will add a Wcf client interceptor which will injects kerberos ticket for egress requests. This should be used together with the supply buildpack to make it fully functional

Below are the important developer instructions, to follow after installation of this package

  1. Add the supply buildpack from here in the CF manifest (preferably the latest release).

    IMPORTANT: Make sure the application is built/published with target platform x64

  2. Follow the readme to setup the sources for kerberos config and keytab files For kerberos config template, please here
  3. Set the correct client UPN in AppSettings with key ClientUserPrincipalName as below (this section will be already added by the package)
  <appSettings>
		<add key="ClientUserPrincipalName" value="client_username@domain" />
  </appSettings>
  1. Set ImpersonateClientUser to true if you need to impersonate the svc user with the client user account (this section will be already added by the package, default is false)
  <appSettings>
		<add key="ImpersonateClientUser" value="false" />
  </appSettings>
  1. Target service UPN has to be provided in the client/endpoint/identity configuration as in the sample below. If not, system will try to use the SPN host/foo.bar (based on the below sample)
  <system.serviceModel>
		<client>
		  <endpoint address="http://foo.bar/myservice.svc" 
					binding="basicHttpBinding" 
					bindingConfiguration="BasicHttpBinding" 
					contract="MyService.IService" 
					name="BasicHttpBinding_IService"
					behaviorConfiguration ="myIwaInterceptorBehavior">
					<identity>
						<userPrincipalName value="target_user@domain" />
					</identity>
		  </endpoint>
		</client>
	</system.serviceModel>
  1. To see debug logs, please set the log level to Debug or Trace, via environment variable PivotalIwaWcfClientInterceptor:LogLevel:Default
Notes
  1. Stable versions are available at www.nuget.org, nuget feed
  2. The dev/alpha packages are available at www.myget.org, myget feed
  3. The packages are still in beta version as it still depends on a beta version of GssKerberos package.

kerberos-auth-egress-wcf-client-interceptor's People

Contributors

alfusinigoj avatar

Stargazers

Ram Kolluri avatar Kendall Adkins avatar

Watchers

James Cloos 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.