SPNEGO (kerberos token generation/validation) for SSO using Python

前端 未结 3 1760
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 05:23

I\'m attempting to implement a simple Single Sign On scenario where some of the participating servers will be windows (IIS) boxes. It looks like SPNEGO is a reasonable path

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 05:48

    This is exactly what Apple does with its Calendar Server. They have a python gssapi library for the kerberos part of the process, in order to implement SPNEGO.

    Look in CalendarServer/twistedcaldav/authkerb.py for the server auth portion. The kerberos module (which is a c module), doesn't have any useful docstrings, but PyKerberos/pysrc/kerberos.py has all the function definitions.

    Here's the urls for the svn trunks:
    http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk
    http://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk

提交回复
热议问题