use of com.github.scribejava.apis.MediaWikiApi in project wikidata-query-rdf by wikimedia.
the class OAuthProxyService method init.
@PostConstruct
public void init() {
OAuthProxyConfig oauthConfig = new OAuthProxyConfig(servletConfig);
OAuth10aService oauthService = new ServiceBuilder(oauthConfig.consumerKey()).apiSecret(oauthConfig.consumerSecret()).build(new MediaWikiApi(oauthConfig.indexUrl(), oauthConfig.niceUrlBase()));
KaskSessionStore<SessionState> sessionStore = buildSessionStore(oauthConfig, HttpClients.createDefault());
OAuthIdentifyService identify = new OAuthIdentifyService(oauthService, oauthConfig.indexUrl(), oauthConfig.consumerSecret());
init(oauthConfig, oauthService, identify, sessionStore);
}
Aggregations