{"id":17543179,"url":"https://github.com/vb64/gae-openid","last_synced_at":"2025-03-29T05:27:49.929Z","repository":{"id":85006049,"uuid":"24324282","full_name":"vb64/gae-openid","owner":"vb64","description":"python/django library for authorization with Wargaming OpenID","archived":false,"fork":false,"pushed_at":"2016-05-24T12:02:02.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T15:55:32.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vb64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-22T10:26:49.000Z","updated_at":"2016-05-24T11:40:58.000Z","dependencies_parsed_at":"2023-03-02T22:00:25.090Z","dependency_job_id":null,"html_url":"https://github.com/vb64/gae-openid","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/vb64%2Fgae-openid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb64%2Fgae-openid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb64%2Fgae-openid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb64%2Fgae-openid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vb64","download_url":"https://codeload.github.com/vb64/gae-openid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246144118,"owners_count":20730360,"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-10-21T00:23:08.630Z","updated_at":"2025-03-29T05:27:49.924Z","avatar_url":"https://github.com/vb64.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"GAE-OpenID\r\n==========\r\n\r\n[Live version](http://openid-gae.appspot.com) of this code.\r\n\r\nDjango library for authorization with Wargaming OpenID on Google App Engine platform.\r\n\r\nbased on:\r\n\r\n[demand.openid.net](https://code.google.com/p/demand/) included as zip archive.\r\n\r\n[google-app-engine-django-openid](https://code.google.com/p/google-app-engine-django-openid/)\r\n\r\nMain difference from google-app-engine-django-openid is a using GAE memcache for saving openid session data, instead GAE datastore tables. So don't need db tables for this purpose, and their periodically cleanup.\r\n\r\n**Usage in your Django App**\r\n\r\n**1.** Define handler for success OpenID auth as:\r\n\r\n```\r\ndef success_handler(request, response, openid_url)\r\n```\r\n\r\nwhere request, response are the standard django objects, and openid_url is a auth data from wargaming.\r\n\r\n**2.** Include library urls handlers and your function from step 1 into your url.py. \r\n\r\nFor example:\r\n\r\n```\r\nurlpatterns = patterns('',\r\n    ...\r\n    url(r'^openid/', include('gae-openid.urls'), {'success_handler': module.success_handler}),\r\n    ...\r\n)\r\n```\r\n\r\n**3.** Add library middleware module into your settings.py:\r\n\r\n```\r\nMIDDLEWARE_CLASSES = (\r\n    ...\r\n    'gae-openid.middleware.OpenIDMiddleware',\r\n    ...\r\n)\r\n```\r\n\r\nInto templates, for entry point to wargaming OpenID auth, you can use, for example:\r\n\r\n```\r\n{% url openid_start %}?continue=/\u0026openid_identifier=https://ru.wargaming.net/id/\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvb64%2Fgae-openid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvb64%2Fgae-openid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvb64%2Fgae-openid/lists"}