GithubHelp home page GithubHelp logo

spray-spnego's Introduction

NOTE: this project is no longer updated or maintained. Spray has been superseded by Akka HTTP. See akka-http-spnego

Build Status

spray-spnego

spray-spnego provides Kerberos based authentication for spray-routing using SPNEGO. SPNEGO is a way to do GSSAPI authentication between clients and servers using the HTTP authentication header.

The included test-server project is both an example of how to use this project and a way to quickly test it within your Kerberos environment. It provides a secure ping-pong service (you do a GET to endpoint /ping and it responds with pong for the authenticated user). To run it first make sure:

  • Kerberos is properly installed and configured on both server and client
  • DNS is properly configured for the server (it's hostname resolves correctly to its ip-address and the other way around).

Next do the following:

  • Create a keytab for HTTP/yourserver@YOURDOMAIN on the server
  • Edit test-server/src/main/resources/application.conf to set tresata.spray.spnego.kerberos.principal and tresata.spray.spnego.kerberos.keytab
  • Launch the test server with: ./launch-test-server
  • On the client make sure you are logged into Kerberos (with kinit)
  • On the client create a test connection with: curl -k --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt https://yourserver:12345/ping

Have fun! Team @ Tresata

spray-spnego's People

Contributors

koertkuipers avatar

Stargazers

Zhizhou Li avatar Cosmin Lehene avatar MikhailY avatar  avatar Akhil Kodali avatar Slim Tebourbi avatar Phil Andrew avatar Steven Fusco avatar Yan avatar

Watchers

MikhailY avatar Rob Wills avatar  avatar  avatar James Cloos avatar Andres Perez 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.