Hi All,
Due to bug item #193935 I had to incorporate some changes to the core. This bug item requested the
possibility of requesting authentication tokens for a specific VO. Therefore several
changes took place. To give you a
rough overview:
1) IAuthenticationTokenDescription
has a new method matches( IAuthenticationTokenDescription ) that matches one
description against another
2) IVirtualOrganizations have now to properly implement equals(
Object )
3) IAuthTokenProvider#requestToken(
IAuthenticationTokenDescription ) was replaced by IAuthTokenProvider#requestToken(
AuthTokenRequest )
4) AuthTokenRequest
let you specify an
IAuthenticationTokenDescription, a requester as a String and
a purpose of the token as a String. The requester and
the purpose will be shown in the “No appropriate auth token found …
Should a new token be created …” dialog if present. This makes the authentication
process much more transparent for
the user. We can discuss about the
way these Strings are incorporated in the dialog, currently it is done in the
most simple way, the requester is taken as the dialog’s title and the purpose is taken as the message text.
5) The
AbstractAuthTokenProvider has a new method staticRequestToken( AuthTokenRequest
) that supports this mechanism. In
fact I plan to completely replace staticRequestToken(
IAuthenticationTokenDescription ) with the new method. Therefore I ask you to
check your code of occurrences of this method and
to replace them with the new method!!!
This is a first shot implementation and may still contain bugs. It is therefore important that you now change
to this new mechanism and forget about the old one in order to test it and give me feedback. I will close #193935 since the
functionality is in principle there. So if you find any
bugs please report them in a separate item.
Thanks,
Mathias