{"id":15019143,"url":"https://github.com/sophos/plack-middleware-auth-negotiate","last_synced_at":"2025-10-03T22:30:40.104Z","repository":{"id":56830689,"uuid":"97522322","full_name":"sophos/Plack-Middleware-Auth-Negotiate","owner":"sophos","description":"Negotiate (SPNEGO) authentication middleware for Plack","archived":true,"fork":true,"pushed_at":"2017-08-01T21:41:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-29T19:01:33.430Z","etag":null,"topics":["gssapi","perl-module","perl5","plack","spnego"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Plack::Middleware::Auth::Negotiate","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"avuserow/Plack-Middleware-Auth-Negotiate","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sophos.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T21:07:04.000Z","updated_at":"2023-01-24T09:00:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sophos/Plack-Middleware-Auth-Negotiate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophos%2FPlack-Middleware-Auth-Negotiate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophos%2FPlack-Middleware-Auth-Negotiate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophos%2FPlack-Middleware-Auth-Negotiate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sophos%2FPlack-Middleware-Auth-Negotiate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sophos","download_url":"https://codeload.github.com/sophos/Plack-Middleware-Auth-Negotiate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235198403,"owners_count":18951500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gssapi","perl-module","perl5","plack","spnego"],"created_at":"2024-09-24T19:53:03.501Z","updated_at":"2025-10-03T22:30:39.742Z","avatar_url":"https://github.com/sophos.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nPlack::Middleware::Auth::Negotiate - Negotiate authentication middleware (SPNEGO)\n\n# VERSION\n\nversion 0.172130\n\n# SYNOPSIS\n\n```perl\nuse Plack::Builder;\nmy $app = sub { ... };\n\nbuilder {\n    enable 'Auth::Negotiate', keytab =\u003e 'FILE:www.keytab';\n    $app;\n};\n```\n\n# DESCRIPTION\n\nPlack::Middleware::Auth::Negotiate provides Negotiate (SPNEGO) authentication\nfor your Plack application (for use with Kerberos).\n\nThis is a very alpha module, and I am still testing some of the security corner\ncases. Help wanted.\n\n# CONFIGURATION\n\n- keytab: path to the keytab to use. This value is set as\n`$ENV{KRB5_KTNAME}` if provided.\n\nNote that there is no option for matching URLs. You can do this yourself with\n[Plack::Middleware::Conditional](https://metacpan.org/pod/Plack::Middleware::Conditional)'s `enable_if` syntax (for [Plack::Builder](https://metacpan.org/pod/Plack::Builder)).\n\n# TODO\n\n- More security testing.\n- Ability to specify a list of valid realms. If REALM.EXAMPLE.COM trusts\nREALM.FOOBAR.COM, and we don't want to allow REALM.FOOBAR.COM users, we have to\ncheck after accepting the ticket.\n- Option to automatically trim the @REALM.EXAMPLE.COM portion of the user\nvalue.\n- Method to also provide Basic auth if Negotiate fails.\n- Some way to cooperate with other Auth middleware. `enable_if` is your\nbest bet right now (with different URLs for each type of authentication, and\nwriting a session).\n- Better interaction with [Plack::Middleware::Session](https://metacpan.org/pod/Plack::Middleware::Session), since this\nauthentication is slow in my experience.\n- Better implementation of the actual RFC.\n- Custom \"Authorization Required\" message\n\n# SEE ALSO\n\n[Plack](https://metacpan.org/pod/Plack), [Plack::Builder](https://metacpan.org/pod/Plack::Builder), [Plack::Middleware::Auth::Basic](https://metacpan.org/pod/Plack::Middleware::Auth::Basic)\n\n[GSSAPI](https://metacpan.org/pod/GSSAPI), mod\\_auth\\_kerb\n\n# ACKNOWLEDGEMENTS\n\nThis code is based off of [Plack::Middleware::Auth::Basic](https://metacpan.org/pod/Plack::Middleware::Auth::Basic) and a sample script\nprovided with [GSSAPI](https://metacpan.org/pod/GSSAPI).\n\n# AUTHOR\n\nAdrian Kreher \u003cavuserow@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2011 by Adrian Kreher \u003cavuserow@cpan.org\u003e.\n\nThis is free software, licensed under:\n\n```perl\nThe (three-clause) BSD License\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophos%2Fplack-middleware-auth-negotiate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsophos%2Fplack-middleware-auth-negotiate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsophos%2Fplack-middleware-auth-negotiate/lists"}