The patch looks good to me.
A couple of minor comments though.
1. Logging a warn message in v2 is probably not required. A debug log message just like the one you have for v1 should suffice in my opinion
2. The log message says it's an 'Authorization problem'. It's authentication really.
Anyway, if there isn't enough time to address the above minor issues, that's fine.
The patch looks good to me.
A couple of minor comments though.
1. Logging a warn message in v2 is probably not required. A debug log message just like the one you have for v1 should suffice in my opinion
2. The log message says it's an 'Authorization problem'. It's authentication really.
Anyway, if there isn't enough time to address the above minor issues, that's fine.