[JBoss Identity Development] - Re: AppliesTo support for STSClient (previously WSTrustClien
by beve
Hi Stefan,
great, then I'll go ahead and add this :)
When reading the WS-Trust spec I noticed that TokenType and AppliesTo are option but one of them 'SHOULD' be specified and this is also verified by the StandardRequestHandler.
How about having the ability to specify both though, would this be a valid option for a client?
One example is for the ESB where we have an action that can be configured with either a TokenType or an EndpointURI. We will need to check that one or the other has been specified and then call the appropriate method. But if there was a method like the following no checks would be needed and it would only be one method call:
public Element issueToken(String endpointURI, String tokenType) throws WSTrustException
| {
| if (endpointURI == null && tokenType == null)
| {
| throw new WSTrustException("Either endpointURI or tokenType must be specified");
| }
| RequestSecurityToken request = new RequestSecurityToken();
| setAppliesTo(endpointURI, request);
| setTokenType(tokenType, request);
| return issueToken(request);
| }
|
What do you think, is it worth adding such a convenience method?
Thanks,
/Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257251#4257251
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257251
14 years, 7 months
[JBoss Portal Development] - Error after login into the admin module
by rashmi_ceru1
Hi ,
When i log into the admi side in the server log following error messages are displayed
and it has made the complete admin module very slow . it takes around 10 mins to display one page in the admin and on whole it makes the application completely slow . can any help why this error is coming .
17:58:39,961 ERROR [PortalPermissionCollection] Permission check against the repository failed
java.lang.IllegalArgumentException: Illegal action VIEW
at org.jboss.portal.core.model.instance.InstancePermission.addAction(InstancePermission.java:158)
at org.jboss.portal.core.model.instance.InstancePermission.(InstancePermission.java:107)
at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.createPermission(InstanceContainerImpl.java:179)
at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.getPermission(InstanceContainerImpl.java:511)
at org.jboss.portal.core.model.instance.InstancePermission.implies(InstancePermission.java:176)
at org.jboss.portal.security.PortalPermissionCollection.implies(PortalPermissionCollection.java:96)
at org.jboss.portal.security.impl.jacc.Permissions.implies(Permissions.java:93)
at org.jboss.portal.security.impl.jacc.SecurityContext.implies(SecurityContext.java:81)
at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.internalCheckPermission(JACCPortalAuthorizationManager.java:272)
at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationManager.java:301)
at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationManager.java:326)
at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$getDefinitions$aop(InstanceContainerImpl.java:390)
at
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257083#4257083
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257083
14 years, 7 months