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

no.nav.brukerdialog.security.oidc.provider.SecurityTokenServiceOidcProviderConfig Maven / Gradle / Ivy

There is a newer version: 1.2020.02.21_14.01-cdaccec525a6
Show newest version
package no.nav.brukerdialog.security.oidc.provider;

import lombok.Builder;
import lombok.Value;
import no.nav.sbl.util.EnvironmentUtils;

import static no.nav.sbl.util.EnvironmentUtils.getRequiredProperty;

@Builder
@Value
public class SecurityTokenServiceOidcProviderConfig {

    public static final String STS_OIDC_CONFIGURATION_URL_PROPERTY = "SECURITY_TOKEN_SERVICE_OPENID_CONFIGURATION_URL";

    public final String discoveryUrl;

    public static SecurityTokenServiceOidcProviderConfig readFromSystemProperties() {
        return SecurityTokenServiceOidcProviderConfig.builder()
                .discoveryUrl(getRequiredProperty(STS_OIDC_CONFIGURATION_URL_PROPERTY))
                .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy