-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
26.0.1.Final
-
None
-
-
Workaround Exists
-
An identity created with the jboss-cli is not found during authorization. The identity filename (suffixed with the Base32 encoding) created by jboss-cli is different from the one that is looked up during authorization.
The scenario was reproduced starting from the Elytron example "client-cert-with-authorization-and-evidence-decoders".
The script was modified to use only one principal decoder, which does not do any transformation, thus retrieves the whole DN.
This is the name of the identity file that was created by the jboss-cli:
cn_int_itside_ettest0x__ou_all__o_all__l_all__st_itside__c_it-INHD2SKOKQQESVDTNFSGKLKFKR2GK43UGB4CYICPKU6UCTCMFQQE6PKBJRGCYICMHVAUYTBMEBJVIPLJORZWSZDFFQQEGPKJKQ.xml
This is the name of the identity file that is looked up during authorization:
cn_int_itside_ettest0x_ou_all_o_all_l_all_st_itside_c_it-INHD2SKOKQQESVDTNFSGKLKFKR2GK43UGB4CYT2VHVAUYTBMJ46UCTCMFRGD2QKMJQWFGVB5NF2HG2LEMUWEGPKJKQ.xml
If the "encoded" attribute of the filesystem-realm is set to false, the issue exists nonetheless. In this case, this is the filename of the identity file that was created by the jboss-cli:
CN=INT ITside-ETtest0x, OU=ALL, O=ALL, L=ALL, ST=itside, C=IT.xml
This is the name of the identity file that is looked up during authorization:
CN=INT ITside-ETtest0x,OU=ALL,O=ALL,L=ALL,ST=itside,C=IT.xml