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

io.quarkus.vault.runtime.client.authmethod.VaultInternalAppRoleAuthMethod Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.vault.runtime.client.authmethod;

import javax.inject.Singleton;

import io.quarkus.vault.runtime.client.VaultInternalBase;
import io.quarkus.vault.runtime.client.dto.auth.VaultAppRoleAuth;
import io.quarkus.vault.runtime.client.dto.auth.VaultAppRoleAuthBody;

@Singleton
public class VaultInternalAppRoleAuthMethod extends VaultInternalBase {

    public VaultAppRoleAuth login(String roleId, String secretId) {
        VaultAppRoleAuthBody body = new VaultAppRoleAuthBody(roleId, secretId);
        return vaultClient.post("auth/approle/login", null, body, VaultAppRoleAuth.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy