Hi Daniel
Thanks for the feedback. I wouldn't necessarily suggest enforcing usernames to be lowercase or uppercase but rather allowing them to be cause insensitive. Treating 'MelissP' and 'melissp' as two different people, in terms of authorizations but not authentication is currently causing us issues.
I have done some investigation as to where/how we might be able to offer case-insensitive authorization option as you suggest however am getting stuck. Some pointers in the right direction would be appreciated..... if I get this correct I can definitely try submit as a community contribution.
Options/Investigation done thus far
1) Current "Hack" = changing the JavaScript within each camunda app to enforce either uppper/lowercase usernames. Change JS around the login calls to something that include angular.upper() eg:
$scope.login = function () {
AuthenticationService
.login(angular.lowercase($scope.username), $scope.password)
.then(function() {
Notifications.clearAll();
})
.catch(function() {
Notifications.addError({
status: 'Login Failed',
message: 'Wrong credentials or missing access rights to application',
scope: $scope
});
});
};
}];
I am not liking the above solution... as with new releases from Camunda this could be problematic and its really not solving the underlying issue.
2) I see that the "problem" lies within the Camunda authentication query within 'Authorization.xml' in that where clauses seems to be an exact match to username "A.USER_ID_ = #{authUserId, jdbcType=VARCHAR}" [please remember I am not familiar at all with MyBartis so could be incorrect here.]
At the same time.... if we could overried the function isAuthorized() of AuthenticationManager that may help..
3) Is there some what when implementing your own engine plugin to override the authentication check similar to the current password check? I don't believe this is currently possibly... or if it would make much sense.
4) Ideally there is a better solution to all of my above suggestions as I don't believe any of these are great. Pointers in this direction would really help.
Thank You in advance
Melissa