【问题标题】:OAuth.io with Github EnterpriseOAuth.io 与 Github Enterprise
【发布时间】:2017-10-07 01:47:46
【问题描述】:

似乎 OAuth.io 提供程序(都在这里:https://github.com/oauth-io/oauthd/tree/master/providers)是静态文件; GitHub Enterprise 的问题是,域名不是 github.com,而是每个客户的不同名称。有没有办法让 OAuth.io 与域名始终不同的提供商合作,例如 GitHub Enterprise 用例?

【问题讨论】:

    标签: github-enterprise oauth.io


    【解决方案1】:

    看看有同样问题的 Shopify 提供商实现

    https://github.com/oauth-io/oauthd/blob/master/providers/shopify/conf.json

    我们添加了一个参数shop

    "parameters": {
       "shop": "string",
       ...
    }
    

    OAuth.io 中设置 API 密钥时可以配置此参数:

    并且这个参数可以在 URL 中重复使用:

    `"url": "https://{shop}.myshopify.com",`
    

    如果您有时间将 Github Enterprise 添加到 OAuth 提供者列表,请随时提出拉取请求!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-26
      • 2016-09-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多