Giter VIP home page Giter VIP logo

moz-ldap's Introduction

MozLDAP

This app aims to wrap the Mozilla LDAP so you can ask simple questions about users in LDAP by a straight forwards RESTful API.

License

MPL2

Running tests

You need to force a new DB every time since we're using sqlite's :memory:.

FORCE_DB=1 python manage.py test

moz-ldap's People

Contributors

djmitche avatar peterbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

moz-ldap's Issues

Secure REST APIs

Mozilla websites which consume the MozLDAP web services should do so in a secure manner.

  1. They should be done of https

  2. They should sign their requests

  3. MozLDAP should verify request signatures, before servicing a request.

Each webapp would have to register the following:

AppID: socorro-123456
Secret: somereallylongsecretwhichwasautogenterated

(I need to play with the real APIs more, bear with me)

If the signature is valid, continue servicing the request. Otherwise respond with a 401 or other relevant HTTP code.

Benefits - Operations can lock down who can use mozLDAP. They can change secret AppIDs and Secret keys as needed.

(Updated: removed my original proposal as HAWK is a better idea)

Reduce scope of MozLDAP for 1.0

Althought MozLDAP is currently awesome the way Swiss Army knives are awesome, for 1.0, I think it should have a small, focused API.

This API should meet the 80% case of many Mozilla community and internal websites. Effectively this is:

  • Is this email address currently a valid employee
  • Is this email address a member of LDAP group X

These two API calls could be organized under authorization.

The 1.0 release would be MozLDAP Authorization APIs.

The other features of this repo should be moved into a different branch or deleted. This is needed for security reasons, so that the surface area is small.

Each of these APIs would return a boolean.

These APIs can only be consumed by registered applications as noted in Issue #1.

Wiki changes

FYI: The following changes were made to this repository's wiki:

  • defacing spam has been removed

  • the wiki has been disabled, as it was not used

These were made as the result of a recent automated defacement of publically writeable wikis.

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.