You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by dhogan <di...@forgerock.com> on 2015/01/20 19:25:05 UTC

STS Validate Operation and token transformation

Hi-
I am working on an STS implementation. I would like to emphasize token
transformation, as that seems to be the most compelling value proposition in
WS-Trust. The Issue operation defines a token transformation from the
SupportingToken specified in the SecurityPolicy binding, to the
TokenType/KeyType specified in the invocation. I was hoping to use the
Validate operation as a more flexible token transformation invocation,
leveraging the variant where the TokenType is something other than
/RSTR/Status. In such a scheme, the TransportBinding could protect a
Validate invocation which could support multiple transformations, a more
flexible deployment model than protecting the Issue operation with a single
SecurityPolicy binding.

However, I noticed that in both the 2.7.8 and 3.0.3 code base, the
AbstractSTSClient does not write the KeyType in a Validate invocation, and
writes the KeyType only in an Issue operation. Without the KeyType, a robust
set of output token types cannot be defined. I’m wondering if I am
attempting to push WS-Trust beyond its intended uses - i.e. that token
transformation is best modeled by multiple STS instances, each supporting
the Issue operation, and each supporting a single SecurityPolicy binding
corresponding to one of the input token transformation types. In other
words, I’m wondering if the lack of a KeyType specification in the Validate
invocation is not a bug/oversight, but rather a concession to the convention
dictating WS-Trust consumption.

Thoughts? 

Thanks

Dirk



--
View this message in context: http://cxf.547215.n5.nabble.com/STS-Validate-Operation-and-token-transformation-tp5753327.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: STS Validate Operation and token transformation

Posted by dhogan <di...@forgerock.com>.
Hi Colm-
I've been thinking about this a bit, and I'm leery of the interop
implications of this change. The fact that the cxf-sts does not realize this
interpretation of the specification makes me nervous. Compliance with
WS-Trust, a spec whose schema definitions specify unbounded collections of
xs:any types for requests and responses seems to be driven largely by
convention. Nor does the validate binding in WS-Trust mention much about
what I've outlined above. I don't doubt that this could be added to the
cxf-sts code-base, and that it might provide value to some customers, but
the more value it provided, the more likely that it would be consumed from a
heterogeneous (e.g. .NET) context, with remote prospects of either semantic
congruence, or the ability of effecting said congruence by diving into the
WCF (or whatever) code base and making the necessary changes.

Thanks for the discussion.

Dirk 



--
View this message in context: http://cxf.547215.n5.nabble.com/STS-Validate-Operation-and-token-transformation-tp5753327p5753940.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: STS Validate Operation and token transformation

Posted by Colm O hEigeartaigh <co...@apache.org>.
Yes I think we probably should support OnBehalfOf/ActAs in this scenario as
well. Please submit a patch!

Colm.

On Thu, Jan 22, 2015 at 4:07 PM, dhogan <di...@forgerock.com> wrote:

> Hi Colm-
> Wow - thanks for the quick action.
>
> What about OnBehalfOf/ActAs handling in the non-status validate invocation?
> The idea is to treat the non-status validate as semantically equivalent to
> an issue operation, where the input token passed to the validate invocation
> is equivalent to the SupportingToken required by the SecurityPolicy
> bindings
> protecting the issue operation(s).
>
> I'm not necessarily asking for this functionality, I'm more asking your
> opinion on whether this notion is viable and contributes end-user value. I
> tend to think it does, if only because a single sts instance supporting a
> validate operation with a rich set of input and output token types,
> protected by the transport binding, may be simpler to deploy than a set of
> sts instances, each supporting the issue operation, and each with a
> SecurityPolicy binding specifying a SupportingToken corresponding one of
> the
> input token types supported by the non-status validate operation. But this
> reasoning may be completely specious. The fact that the cxf-sts has not
> implemented these concerns may indicate that I'm not understanding
> something. What do you think?
>
> I need to chew on this a bit, but if it turns out to make sense, I'd be
> happy to contribute a patch (if you think it's appropriate given the
> possible scope of the changes).
>
> Thanks
>
> Dirk
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/STS-Validate-Operation-and-token-transformation-tp5753327p5753423.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: STS Validate Operation and token transformation

Posted by dhogan <di...@forgerock.com>.
Hi Colm-
Wow - thanks for the quick action. 

What about OnBehalfOf/ActAs handling in the non-status validate invocation?
The idea is to treat the non-status validate as semantically equivalent to
an issue operation, where the input token passed to the validate invocation
is equivalent to the SupportingToken required by the SecurityPolicy bindings
protecting the issue operation(s). 

I'm not necessarily asking for this functionality, I'm more asking your
opinion on whether this notion is viable and contributes end-user value. I
tend to think it does, if only because a single sts instance supporting a
validate operation with a rich set of input and output token types,
protected by the transport binding, may be simpler to deploy than a set of
sts instances, each supporting the issue operation, and each with a
SecurityPolicy binding specifying a SupportingToken corresponding one of the
input token types supported by the non-status validate operation. But this
reasoning may be completely specious. The fact that the cxf-sts has not
implemented these concerns may indicate that I'm not understanding
something. What do you think?

I need to chew on this a bit, but if it turns out to make sense, I'd be
happy to contribute a patch (if you think it's appropriate given the
possible scope of the changes).

Thanks

Dirk



--
View this message in context: http://cxf.547215.n5.nabble.com/STS-Validate-Operation-and-token-transformation-tp5753327p5753423.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: STS Validate Operation and token transformation

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi,

I added support to CXF master + 3.0.x-fixes to send a KeyType, KeySize +
Renewal semantics in a non "Status" Validate request. The KeyType defaults
to Bearer.

Colm.

On Tue, Jan 20, 2015 at 6:25 PM, dhogan <di...@forgerock.com> wrote:

> Hi-
> I am working on an STS implementation. I would like to emphasize token
> transformation, as that seems to be the most compelling value proposition
> in
> WS-Trust. The Issue operation defines a token transformation from the
> SupportingToken specified in the SecurityPolicy binding, to the
> TokenType/KeyType specified in the invocation. I was hoping to use the
> Validate operation as a more flexible token transformation invocation,
> leveraging the variant where the TokenType is something other than
> /RSTR/Status. In such a scheme, the TransportBinding could protect a
> Validate invocation which could support multiple transformations, a more
> flexible deployment model than protecting the Issue operation with a single
> SecurityPolicy binding.
>
> However, I noticed that in both the 2.7.8 and 3.0.3 code base, the
> AbstractSTSClient does not write the KeyType in a Validate invocation, and
> writes the KeyType only in an Issue operation. Without the KeyType, a
> robust
> set of output token types cannot be defined. I’m wondering if I am
> attempting to push WS-Trust beyond its intended uses - i.e. that token
> transformation is best modeled by multiple STS instances, each supporting
> the Issue operation, and each supporting a single SecurityPolicy binding
> corresponding to one of the input token transformation types. In other
> words, I’m wondering if the lack of a KeyType specification in the Validate
> invocation is not a bug/oversight, but rather a concession to the
> convention
> dictating WS-Trust consumption.
>
> Thoughts?
>
> Thanks
>
> Dirk
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/STS-Validate-Operation-and-token-transformation-tp5753327.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com