{"id":15890730,"url":"https://github.com/distroid/okauth","last_synced_at":"2025-04-02T17:22:15.342Z","repository":{"id":81276982,"uuid":"20275118","full_name":"distroid/OkAuth","owner":"distroid","description":"Auth class for www.odnoklassniki.ru","archived":false,"fork":false,"pushed_at":"2014-06-04T12:04:59.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T08:10:58.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/distroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-05-28T22:58:13.000Z","updated_at":"2014-06-04T12:04:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"af827c72-896b-4d46-b9e9-403758b37782","html_url":"https://github.com/distroid/OkAuth","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/distroid%2FOkAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distroid","download_url":"https://codeload.github.com/distroid/OkAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246856888,"owners_count":20845043,"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-06T07:07:57.919Z","updated_at":"2025-04-02T17:22:15.314Z","avatar_url":"https://github.com/distroid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"OkAuth\n======\n\nAuth class for www.odnoklassniki.ru\n\n\u003ch3\u003eHow to use\u003c/h3\u003e\n\n\u003col\u003e\n\t\u003cli\u003eFirst create aplication on odnoklassniki.ru\u003c/li\u003e\n\t\u003cli\u003eCreate action login by odnoklassniki.ru\n\u003cpre\u003edef loginByOk\n\t@options = {\n\t\t'client_id'         =\u003e [your_app_client_id],\n\t\t'scope'             =\u003e \"VALUABLE ACCESS\",\n\t\t'redirect_uri'      =\u003e [callback_action],\n\t\t'client_secret'     =\u003e [your_app_client_secret],\n\t}\n\tredirect_to OkAuth.new(@options).get_auth_url\nend\u003c/pre\u003e\u003c/li\u003e\n\t\u003cli\u003eCreate callback action\n\u003cpre\u003edef loginByOkCallback\n\t@options = {\n\t\t'client_id'         =\u003e [your_app_client_id],\n\t\t'scope'             =\u003e \"VALUABLE ACCESS\",\n\t\t'redirect_uri'      =\u003e [callback_action],\n\t\t'client_secret'     =\u003e [your_app_client_secret],\n\t\t'application_key'   =\u003e [your_app_client_public],\n\t}\n\tuserOkData = OkAuth.new(@options).get_user_data(request.GET[\"code\"])\nend\u003c/pre\u003e\u003c/li\u003e\n  \u003cli\u003eSave userdata in DB and login him\u003c/li\u003e\n\u003c/ol\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistroid%2Fokauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistroid%2Fokauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistroid%2Fokauth/lists"}