Issue #20254 fix JWT OAuth exchange.
Issue #20266 Add try catch for error handling.
Issue #20254 Fix Discovery Doc generation current_database() needs to be text.
Issue #20254 fix REST.
Merge pull request #406 from bendiy/20254-global

Fix REST