@Component public class KeycloakSecurityContextClientRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected String |
authServer |
protected String |
keycloaktestpassword |
protected String |
keycloaktestuser |
protected String |
realm |
protected String |
resource |
| Constructor and Description |
|---|
KeycloakSecurityContextClientRequestInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeycloaktestuser() |
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest httpRequest,
byte[] bytes,
org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution) |
void |
setKeycloaktestuser(String keycloaktestuser) |
@Value(value="${keycloak.auth-server-url}")
protected String authServer
@Value(value="${keycloak.realm}")
protected String realm
@Value(value="${keycloak.resource}")
protected String resource
@Value(value="${keycloaktestuser}")
protected String keycloaktestuser
@Value(value="${keycloaktestpassword}")
protected String keycloaktestpassword
public KeycloakSecurityContextClientRequestInterceptor()
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest httpRequest,
byte[] bytes,
org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionpublic void setKeycloaktestuser(String keycloaktestuser)
public String getKeycloaktestuser()
Copyright © 2010–2017 Alfresco. All rights reserved.