Avoid auth mount path escaping

If one wants it being escaped, it could be done in advance in the configuration.

Original pull request: gh-533.
Closes gh-532.
This commit is contained in:
Oleg Lopatin
2020-01-29 14:55:41 -08:00
committed by Mark Paluch
parent 71e6351256
commit ac38b83b4c
14 changed files with 58 additions and 41 deletions

View File

@@ -813,7 +813,7 @@ AuthenticationSteps.fromSupplier( <1>
() -> getAppRoleLogin(options.getRoleId(), options.getSecretId())) <2>
.login("auth/{mount}/login", options.getPath()); <3>
.login(AuthenticationUtil.getLoginPath(options.getPath())); <3>
----
<1> Start declaring `AuthenticationSteps` accepting a `Supplier<T>`. The state
object type depends on the `Supplier` response type which can be mapped in a later step.