All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.leanix.dropkit.ConfigurationResourceServer Maven / Gradle / Ivy

There is a newer version: 2.0.10
Show newest version
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