hermes.commands.init.util.connect_github
========================================

.. py:module:: hermes.commands.init.util.connect_github


Attributes
----------

.. autoapisummary::

   hermes.commands.init.util.connect_github.local_port
   hermes.commands.init.util.connect_github.client_id
   hermes.commands.init.util.connect_github.client_secret
   hermes.commands.init.util.connect_github.authorization_base_url
   hermes.commands.init.util.connect_github.token_url
   hermes.commands.init.util.connect_github.redirect_uri
   hermes.commands.init.util.connect_github.scope
   hermes.commands.init.util.connect_github.device_code_url


Functions
---------

.. autoapisummary::

   hermes.commands.init.util.connect_github.oauth_process
   hermes.commands.init.util.connect_github.get_tokens
   hermes.commands.init.util.connect_github.get_access_token
   hermes.commands.init.util.connect_github.allow_actions
   hermes.commands.init.util.connect_github.encrypt_secret
   hermes.commands.init.util.connect_github.create_secret


Module Contents
---------------

.. py:data:: local_port
   :value: 8333


.. py:data:: client_id
   :value: 'Ov23linvdC7WzHnOO2WK'


.. py:data:: client_secret
   :value: 'empty-as-not-needed-for-public-device-flow'


.. py:data:: authorization_base_url
   :value: 'https://github.com/login/oauth/authorize'


.. py:data:: token_url
   :value: 'https://github.com/login/oauth/access_token'


.. py:data:: redirect_uri
   :value: 'http://localhost:/callback'


.. py:data:: scope
   :value: 'repo'


.. py:data:: device_code_url
   :value: 'https://github.com/login/device/code'


.. py:function:: oauth_process() -> hermes.commands.init.util.oauth_process.OauthProcess

.. py:function:: get_tokens() -> dict[str:str]

   Starts the oauth procedure and returns collected tokens as dict


.. py:function:: get_access_token() -> str

.. py:function:: allow_actions(project_url: str, token)

.. py:function:: encrypt_secret(public_key: str, secret_value: str) -> str

.. py:function:: create_secret(project_url: str, secret_name: str, secret_value, token)

