Metadata-Version: 2.1
Name: oauth2token
Version: 0.0.2
Summary: Oauth2 token management for cli applications
Home-page: https://github.com/VannTen/oauth2token
Author: VannTen
Author-email: ashelia1000@gmail.com
License: UNKNOWN
Description: ###############
        # Oauth2token #
        ###############
        
        Simple cli tools to create and use oauth2token
        
        
        Configuration
        -----------------------
        
        You need to create :code:`config.json` and :code:`scopes.json` at
        :code:`$XDG_CONFIG_HOME/oauth2token/<provider>/` for each provider you want
        to use.
        :code:`config.json` :
        
        See Google client_secret.json_.
        
        .. _client_secret.json: https://github.com/googleapis/google-api-python-client/blob/master/docs/client-secrets.md
        
        You'll need to obtain your own from the provider.
        
        :code:`scopes.json`:
        The scope your application need as a json array.
        
        Example :
        
        .. code-block:: json
        
            ["https://mail.google.com/"]
        
        
        Usage
        -----
        
        
        :code:`oauth2create` <provider> <account>
        
        Obtain and store credentials in
        `$XDG_DATA_HOME/oauth2token/<provider>/<account>` in binary
        form, using the configuration for that provider. It use the "Installed App flow"
        open a brower where you'll need to log in the account you want to use, then
        redirect to the loopback address to obtain the credentials.
        
        
        :code:`oauth2get` <provider> <account>
        
        Output the access token for that account, refreshing it if needed with the
        associated refresh token.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Intended Audience :: End Users/Desktop
Classifier: Development Status :: 2 - Pre-Alpha
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
