Skip to content

Commit a3e9c0c

Browse files
committed
Enable authentication steps for AzureMsiAuthentication for reactive usage.
Closes gh-665.
1 parent 2fd0a88 commit a3e9c0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-vault-core/src/main/java/org/springframework/vault/authentication/AzureMsiAuthentication.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* "https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service"
5353
* >Azure Instance Metadata service</a>
5454
*/
55-
public class AzureMsiAuthentication implements ClientAuthentication {
55+
public class AzureMsiAuthentication implements ClientAuthentication, AuthenticationStepsFactory {
5656

5757
private static final Log logger = LogFactory.getLog(AzureMsiAuthentication.class);
5858

@@ -144,6 +144,11 @@ public VaultToken login() throws VaultException {
144144
return createTokenUsingAzureMsiCompute();
145145
}
146146

147+
@Override
148+
public AuthenticationSteps getAuthenticationSteps() {
149+
return createAuthenticationSteps(this.options);
150+
}
151+
147152
private VaultToken createTokenUsingAzureMsiCompute() {
148153

149154
Map<String, String> login = getAzureLogin(this.options.getRole(), getVmEnvironment(), getAccessToken());

0 commit comments

Comments
 (0)