@drq
And if it's still not clear, in the case without endpoints you can just leave redirect URL empty and it'll be replaced by that 'magic' value 'urn:ietf:wg:oauth:2.0:oob' which will lead to the auth code (not token!) to be displayed to the user (you) after entering your login and password in the browser.
@skobkin Yeah, so I need to rewrite the configuration routine according to that. Thanks.