[英]Can a Scribe API be configurable in run-time?
Summary 摘要
I am writing an application which uses Scribe to connect to an OAuth Server. 我正在编写一个使用Scribe连接到OAuth服务器的应用程序。 I need to be able to change the endpoints in run-time (without recompiling).
我需要能够在运行时更改端点(无需重新编译)。 Is this possible?
这可能吗?
More details 更多细节
A java server application is using scribe to connect to an OAuth server. Java服务器应用程序正在使用scribe连接到OAuth服务器。 The OAuth-server is developed in-house, so I am extending
DefaultApi10a
to define the endpoints. OAuth服务器是内部开发的,因此我正在扩展
DefaultApi10a
来定义端点。
There are multiple instances of the OAuth-server, and I need to be able to configure my server application (in run-time) which one to connect to. OAuth服务器有多个实例,我需要能够(在运行时)配置要连接的服务器应用程序。 But it seems that the endpoints are intended to be hardcoded in my sub-class of
DefaultApi10a
. 但是似乎这些端点打算在我的
DefaultApi10a
子类中进行硬编码。 Is there a good way around this? 有没有解决这个问题的好方法?
There could be multiple way but I know these two ways. 可能有多种方式,但我知道这两种方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.