{"id":17826435,"url":"https://github.com/liukun-lk/omniauth-dingtalk","last_synced_at":"2025-06-22T03:41:21.198Z","repository":{"id":34239140,"uuid":"113987706","full_name":"liukun-lk/omniauth-dingtalk","owner":"liukun-lk","description":"OmniAuth strategy for DingTalk.","archived":false,"fork":false,"pushed_at":"2023-03-15T21:43:39.000Z","size":52,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T23:42:17.218Z","etag":null,"topics":["dingtalk","oauth2","omniauth-dingtalk","omniauth-strategy","rails","ruby"],"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/liukun-lk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-12-12T12:29:49.000Z","updated_at":"2023-03-09T01:18:37.000Z","dependencies_parsed_at":"2023-07-14T18:56:59.612Z","dependency_job_id":null,"html_url":"https://github.com/liukun-lk/omniauth-dingtalk","commit_stats":{"total_commits":41,"total_committers":7,"mean_commits":5.857142857142857,"dds":0.6097560975609756,"last_synced_commit":"f3be1aa0a93af6c88286a8e8a68ff95998c080b6"},"previous_names":["liukun-lk/oauth2_dingtalk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liukun-lk/omniauth-dingtalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liukun-lk%2Fomniauth-dingtalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liukun-lk%2Fomniauth-dingtalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liukun-lk%2Fomniauth-dingtalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liukun-lk%2Fomniauth-dingtalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liukun-lk","download_url":"https://codeload.github.com/liukun-lk/omniauth-dingtalk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liukun-lk%2Fomniauth-dingtalk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261232844,"owners_count":23128169,"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":["dingtalk","oauth2","omniauth-dingtalk","omniauth-strategy","rails","ruby"],"created_at":"2024-10-27T18:47:54.390Z","updated_at":"2025-06-22T03:41:16.178Z","avatar_url":"https://github.com/liukun-lk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/omniauth-dingtalk.svg)](https://badge.fury.io/rb/omniauth-dingtalk)\n[![Build Status](https://travis-ci.org/liukun-lk/omniauth-dingtalk.svg?branch=master)](https://travis-ci.org/liukun-lk/omniauth-dingtalk)\n\n# Omniauth DingTalk Strategies\n\nStrategy to authenticate with DingTalk via OAuth2 in OmniAuth.\n\nGet your API key at: http://open-dev.dingtalk.com/  Note the appId and the appSecret.\n\nFor more details, read the DingTalk docs: https://open-doc.dingtalk.com/docs/doc.htm?spm=0.0.0.0.oVQWJc\u0026treeId=168\u0026articleId=104878\u0026docType=1\n\n## Resolving-CVE-2015-9284\n\nGo to: https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284\n\n## Installation\n\nAdd to your `Gemfile`:\n\n```ruby\ngem 'omniauth-dingtalk'\n```\n\nThen `bundle install`.\n\n## appId \u0026 appSecret\n\nGo to: https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.o96KrM\u0026treeId=168\u0026articleId=104882\u0026docType=1\n\n## Usage\n\nHere's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :dingtalk, \"Your_OAuth_App_ID\", \"Your_OAuth_App_Secret\"\nend\n```\n\nYou can now access the OmniAuth DingTalk OAuth2 URL: /auth/dingtalk\n\nFor more examples please check out example/config.ru\n\n## Auth Hash\n\nHere's an example of an authentication hash available in the callback by accessing `request.env['omniauth.auth']`:\n\n```ruby\n{\n  \"provider\": \"dingtalk\",\n  \"uid\": \"uid\" # this is openid in DingTalk\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliukun-lk%2Fomniauth-dingtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliukun-lk%2Fomniauth-dingtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliukun-lk%2Fomniauth-dingtalk/lists"}