{"id":15890714,"url":"https://github.com/distroid/okauth-gem","last_synced_at":"2025-06-25T00:05:37.912Z","repository":{"id":17557163,"uuid":"20360103","full_name":"distroid/OkAuth-gem","owner":"distroid","description":"OkAuth gem","archived":false,"fork":false,"pushed_at":"2014-06-02T13:28:10.000Z","size":156,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T11:28:17.633Z","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":"mit","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":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-31T16:38:26.000Z","updated_at":"2015-03-05T10:13:32.000Z","dependencies_parsed_at":"2022-08-25T18:01:36.929Z","dependency_job_id":null,"html_url":"https://github.com/distroid/OkAuth-gem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/distroid/OkAuth-gem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distroid","download_url":"https://codeload.github.com/distroid/OkAuth-gem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distroid%2FOkAuth-gem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261777473,"owners_count":23208120,"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:49.652Z","updated_at":"2025-06-25T00:05:37.890Z","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\u003e\ndef 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 Oauth::Ok::OkAuth.new(@options).getAuthUrl\nend\n\u003c/pre\u003e\u003c/li\u003e\n\t\u003cli\u003eCreate callback action\n\u003cpre\u003e\ndef loginByOkCallback\n\tget = request.GET\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 = Oauth::Ok::OkAuth.new(@options).getUserData(get[\"code\"])\nend\n\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-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistroid%2Fokauth-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistroid%2Fokauth-gem/lists"}