net.leanix.dropkit.ConfigurationResourceServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-dropkit Show documentation
Show all versions of leanix-dropkit Show documentation
Base functionality for leanIX dropwizard-based services
package net.leanix.dropkit;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import net.leanix.dropkit.oauth.OAuth2ResourceServerConfig;
/**
* This configuration is to be used by microservices, which want to
* authenticate incoming requests, e.g. webhooks
*
* @author andre
*/
public class ConfigurationResourceServer extends Configuration {
protected OAuth2ResourceServerConfig oauth = new OAuth2ResourceServerConfig();
/**
* Returns the necessary configuration to run oauth resource providers.
*
* Values can be empty.
*
* @return
*/
@JsonProperty("oauth")
public OAuth2ResourceServerConfig getOAuth2TokenConfig() {
return oauth;
}
@JsonProperty("oauth")
public void setOAuth2TokenConfig(OAuth2ResourceServerConfig config) {
this.oauth = config;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy