-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.375.1, Claim Plugin Version: 501.v3a_4f04704b_64
Users cannot drop the claim (as the option is not shown) when they're logged in with an openIDConnect Authentication.
I've created a PR to fix this issue. Tested it with a regular login + with our openID Connect Login. PR: https://github.com/jenkinsci/claim-plugin/pull/195
Background of my PR:
When using OpenIDConnect authentication there is a difference between Jenkins.getAuthentication2().getName() and User.getId(). For the getId() method it returns the email in lower case, for Jenkins.getAuthentication2().getName() it returns the email in camel case (at least in our configuration). Therefore on the check isClaimedByMe() you should use the value which is also in the dropdown box and which is set in the doClaim() method -> User.getId(). Then it's the same for every authentication.