我们如何构建Harvey的连接器库
我们在适配器层处理这些差异。在授权方面,我们遵循服务器实际暴露的行为:若服务器未发送质询,我们可直接发现元数据;若响应为 200 或 201,则接受其中返回的有效令牌;并按服务器声明的作用域发起请求。
原始摘录
We handle these differences in an adapter layer. For authorization, we follow the behavior a server actually exposes: we can discover metadata directly when it does not send a challenge, accept valid tokens returned with either 200 or 201, and request the scopes it advertises.