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

org.eclipse.edc.iam.oauth2.spi.CredentialsRequestAdditionalParametersProvider Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
/*
 *  Copyright (c) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Apache License, Version 2.0 which is available at
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Contributors:
 *       Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
 *
 */

package org.eclipse.edc.iam.oauth2.spi;

import org.eclipse.edc.runtime.metamodel.annotation.ExtensionPoint;
import org.eclipse.edc.spi.iam.TokenParameters;
import org.jetbrains.annotations.NotNull;

import java.util.Map;

/**
 * Permits to add custom form parameters for oauth2 client credentials request
 */
@FunctionalInterface
@ExtensionPoint
public interface CredentialsRequestAdditionalParametersProvider {

    /**
     * Provides additional form parameters on every credential request
     *
     * @param parameters token parameters
     * @return a map of parameters
     */
    @NotNull
    Map provide(TokenParameters parameters);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy