[java-identity-provider] branch master updated: IDP-1211 - Interceptor for controlled impersonation to services
Scott Cantor
cantor.2 at osu.edu
Thu Aug 16 17:08:31 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=901a0439abee60d449727221fe658eb310a6700a
The following commit(s) were added to refs/heads/master by this push:
new 901a043 IDP-1211 - Interceptor for controlled impersonation to services
901a043 is described below
commit 901a0439abee60d449727221fe658eb310a6700a
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Aug 16 17:08:29 2018 -0400
IDP-1211 - Interceptor for controlled impersonation to services
https://issues.shibboleth.net/jira/browse/IDP-1211
Add example to view using drop-down for selection.
---
idp-conf/src/main/resources/views/intercept/impersonate.vm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/idp-conf/src/main/resources/views/intercept/impersonate.vm b/idp-conf/src/main/resources/views/intercept/impersonate.vm
index 4895677..2bae957 100644
--- a/idp-conf/src/main/resources/views/intercept/impersonate.vm
+++ b/idp-conf/src/main/resources/views/intercept/impersonate.vm
@@ -49,6 +49,19 @@
<div class="form-element-wrapper">
<label for="impersonation">#springMessageText("idp.impersonate.login-as", "Login as")</label>
<input class="form-element form-field" id="impersonation" name="principal" type="text">
+
+ <!-- Defaults to input box above, example below populates a select list from an IdPAttribute. -->
+ <!--
+ #set ($attributeContext = $rpContext.getSubcontext('net.shibboleth.idp.attribute.context.AttributeContext'))
+ #set ($usernamesAttribute = $attributeContext.getUnfilteredIdPAttributes().get("impersonatableUsernames"))
+ <select class="form-element form-field" id="impersonation" name="principal">
+ #if ($usernamesAttribute)
+ #foreach ($username in $usernamesAttribute.getValues())
+ <option value="$encoder.encodeForHTML($username.getValue())">$encoder.encodeForHTML($username.getValue())</option>
+ #end
+ #end
+ </select>
+ -->
</div>
<div class="form-element-wrapper">
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list