Merge pull request #1769 from gerbermichi/client
expose client attributes in ClientBean
This commit is contained in:
commit
3cee33847f
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ import org.keycloak.models.ClientModel;
|
||||||
import org.keycloak.services.util.ResolveRelative;
|
import org.keycloak.services.util.ResolveRelative;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
|
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
|
||||||
|
@ -32,4 +33,11 @@ public class ClientBean {
|
||||||
return ResolveRelative.resolveRelativeUri(requestUri, client.getRootUrl(), client.getBaseUrl());
|
return ResolveRelative.resolveRelativeUri(requestUri, client.getRootUrl(), client.getBaseUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<String,String> getAttributes(){
|
||||||
|
return client.getAttributes();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttribute(String key){
|
||||||
|
return client.getAttribute(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue