OAuthomatic::Internal::MicroWeb - temporary embedded web server used internally - management code
version 0.02
Utility class used internally by OAuthomatic: temporary web server spawned in separate thread, used to receive final redirect of OAuth sequence, and to present additional pages to the user.
This module provides methods to manage this server and communicate with it, OAuthomatic::Internal::MicroWebSrv contains it's actual implementation.
Port the helper runs at. By default allocated randomly.
Directory containing page templates.
By default,
use templates provided with OAuthomatic (according to html_dir
param).
Directory containing static files referenced by templates.
By default,
use templates provided with OAuthomatic (according to html_dir
param).
Enable console logging of web server interactions.
URL path used in OAuth callback (/oauth_granted by default).
URL path used in user interactions (/client_key by default).
Start embedded web server. To be called (from main thread) before any ineractions begin.
Stop embedded web server. To be called (from main thread) after OAuth is properly configured.
Starts if not yet running. Increases usage counter.
Decreass usage counter. Stops if it tropped to 0.
Wait until OAuth post-rights-grant callback arrives and return tokens it provided. Blocks until then. Throws proper error if failed.
To be called from the main thread.
Wait until user entered application tokens. Blocks until then.
To be called from the main thread.
OAuthomatic::Config object used to bundle various configuration params.
OAuthomatic::Server object used to bundle server-related configuration params.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
This software is copyright (c) 2015 by Marcin Kasperski.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.