{"id":19648686,"url":"https://github.com/bestpractical/jifty-plugin-openid","last_synced_at":"2025-07-03T08:36:46.112Z","repository":{"id":66697577,"uuid":"417489","full_name":"bestpractical/jifty-plugin-openid","owner":"bestpractical","description":null,"archived":false,"fork":false,"pushed_at":"2010-06-23T21:47:35.000Z","size":155,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T00:46:10.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/jifty-plugin-openid","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestpractical.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-12-10T18:15:32.000Z","updated_at":"2014-09-08T20:40:16.000Z","dependencies_parsed_at":"2023-02-20T09:30:39.421Z","dependency_job_id":null,"html_url":"https://github.com/bestpractical/jifty-plugin-openid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bestpractical/jifty-plugin-openid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fjifty-plugin-openid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fjifty-plugin-openid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fjifty-plugin-openid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fjifty-plugin-openid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestpractical","download_url":"https://codeload.github.com/bestpractical/jifty-plugin-openid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fjifty-plugin-openid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263291457,"owners_count":23443763,"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":[],"created_at":"2024-11-11T14:49:30.342Z","updated_at":"2025-07-03T08:36:46.087Z","avatar_url":"https://github.com/bestpractical.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Jifty::Plugin::OpenID - Provides OpenID authentication for your jifty\n    app\n\nDESCRIPTION\n    Provides OpenID authentication for your app\n\nUSAGE\n  Config\n    please provide \"OpenIDSecret\" in your etc/config.yml , the \"OpenIDUA\" is\n    optional , OpenID Plugin will use LWPx::ParanoidAgent by default.\n\n        --- \n        application:\n            OpenIDSecret: 1234\n            OpenIDUA: LWP::UserAgent\n\n    or you can set \"OpenIDUserAgent\" environment var in command-line:\n\n        OpenIDUserAgent=LWP::UserAgent bin/jifty server\n\n    if you are using LWPx::ParanoidAgent as your openid agent. you will need\n    to provide \"JIFTY_OPENID_WHITELIST_HOST\" for your own OpenID server.\n\n        export JIFTY_OPENID_WHITELIST_HOST=123.123.123.123\n\n  User Model\n    Create your user model , and let it uses\n    Jifty::Plugin::OpenID::Mixin::Model::User to mixin \"openid\" column. and\n    a \"name\" method.\n\n        use TestApp::Record schema {\n\n            column email =\u003e\n                type is 'varchar';\n\n        };\n        use Jifty::Plugin::OpenID::Mixin::Model::User;\n\n        sub name {\n            my $self = shift;\n            return $self-\u003eemail;\n        }\n\n    Note: you might need to declare a \"name\" method. because the OpenID\n    CreateOpenIDUser action and SkeletonApp needs current_user-\u003eusername to\n    show welcome message and success message , which calls\n    \"brief_description\" method. See Jifty::Record for \"brief_description\"\n    method.\n\n  View\n    OpenID plugin provides AuthenticateOpenID Action. so that you can render\n    an AuthenticateOpenID in your template:\n\n        form {\n            my $openid = new_action( class   =\u003e 'AuthenticateOpenID',\n                                    moniker =\u003e 'authenticateopenid' );\n            render_action( $openid );\n        };\n\n    this action renders a form which provides openid url field. and you will\n    need to provide a submit button in your form.\n\n        form {\n            my $openid = new_action( class   =\u003e 'AuthenticateOpenID',\n                                    moniker =\u003e 'authenticateopenid' );\n\n            # ....\n\n            render_action( $openid );\n            outs_raw(\n                Jifty-\u003eweb-\u003ereturn(\n                    to     =\u003e '/openid_verify_done',\n                    label  =\u003e _(\"Login with OpenID\"),\n                    submit =\u003e $openid\n                ));\n        };\n\n    the \"to\" field is for verified user to redirect to. so that you will\n    need to implement a template called \"/openid_verify_done\":\n\n        template '/openid_verify_done' =\u003e page {\n            h1 { \"Done\" };\n        };\n\nAUTHORS\n    Alex Vandiver, Cornelius \u003ccornelius.howl {at} gmail.com \u003e\n\nLICENSE\n    Copyright 2005-2009 Best Practical Solutions, LLC.\n\n    This program is free software and may be modified and distributed under\n    the same terms as Perl itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fjifty-plugin-openid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestpractical%2Fjifty-plugin-openid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fjifty-plugin-openid/lists"}