{"id":16639868,"url":"https://github.com/v-kolesnikov/omnidesk_auth","last_synced_at":"2025-09-12T02:18:24.417Z","repository":{"id":56886677,"uuid":"56434872","full_name":"v-kolesnikov/omnidesk_auth","owner":"v-kolesnikov","description":"Omnidesk SSO auth client","archived":false,"fork":false,"pushed_at":"2016-05-16T18:47:30.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T09:51:35.019Z","etag":null,"topics":["jwt","omnidesk","sso"],"latest_commit_sha":null,"homepage":"","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/v-kolesnikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-17T12:20:56.000Z","updated_at":"2017-03-06T19:58:59.000Z","dependencies_parsed_at":"2022-08-20T14:31:23.657Z","dependency_job_id":null,"html_url":"https://github.com/v-kolesnikov/omnidesk_auth","commit_stats":null,"previous_names":["justcxx/omnidesk_auth"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/v-kolesnikov/omnidesk_auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fomnidesk_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fomnidesk_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fomnidesk_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fomnidesk_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v-kolesnikov","download_url":"https://codeload.github.com/v-kolesnikov/omnidesk_auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fomnidesk_auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274743244,"owners_count":25341134,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jwt","omnidesk","sso"],"created_at":"2024-10-12T07:07:15.925Z","updated_at":"2025-09-12T02:18:24.398Z","avatar_url":"https://github.com/v-kolesnikov.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/omnidesk_auth.svg)](https://badge.fury.io/rb/omnidesk_auth)\n[![Build Status](https://travis-ci.org/justCxx/omnidesk_auth.svg?branch=master)](https://travis-ci.org/justCxx/omnidesk_auth)\n[![Code Climate](https://codeclimate.com/github/justCxx/omnidesk_auth/badges/gpa.svg)](https://codeclimate.com/github/justCxx/omnidesk_auth)\n[![Test Coverage](https://codeclimate.com/github/justCxx/omnidesk_auth/badges/coverage.svg)](https://codeclimate.com/github/justCxx/omnidesk_auth/coverage)\n\n# OmnideskAuth\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'omnidesk_auth'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install omnidesk_auth\n\n## Usage\n\n### Rails\n\n#### Configure\n\n```ruby\n# config/initializers/omnidesk_auth.rb\nOmnideskAuth.configure do |auth|\n  auth.endpoint = 'http://mycompany.omnidesk.ru'\n  auth.secret = '\u003csecret token\u003e'\nend\n```\n\nNote: The OmnideskAuth module takes the configuration defaults from environment variables:\n\n - OMNIDESK_AUTH_SECRET\n - OMNIDESK_AUTH_ENDPOINT\n - OMNIDESK_AUTH_EXPIRE\n\nSee: [OmnideskAuth::Default](lib/omnidesk_auth/default.rb)\n\n#### Controller\n```ruby\n# app/controllers/support_controller.rb\nclass SupportController \u003c ApplicationController\n  def omnidesk_sign_in\n    redirect_to OmnideskAuth.sso_auth_url(email: current_user.email)\n  end\nend\n```\n\nAccording to the documentation omnidesk service accepts as binding the following fields:\n\n- iat (required) - Issued At (the time when the token was generated))\n- email (required) - user email\n\nParameter \"iat\" is installed automatically during the generation of the token, but is also available for self-installation via the options hash.\nParameter email is the only field that you need to be sure to pass.\n\nExample of filling in all possible fields:\n\n```ruby\ndef omnidesk_sign_in\n  redirect_to OmnideskAuth.sso_auth_url(\n    iat: Time.current.to_i,\n    name: current_user.name,\n    email: current_user.email,\n    external_id: current_user.id,\n    company_name: current_user.company.name,\n    company_position: current_user.position,\n    remote_photo_url: current_user.avatar_url,\n    exp: 1.day)\nend\n```\n\nSee more: [Omnidesk documention](https://support.omnidesk.ru/knowledge_base/item/54180)\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-kolesnikov%2Fomnidesk_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-kolesnikov%2Fomnidesk_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-kolesnikov%2Fomnidesk_auth/lists"}