Metadata-Version: 2.4
Name: cone.firebase
Version: 0.1
Summary: Firebase integration for cone.app
Home-page: http://github.com/conestack/cone.firebase
Author: Cone Contributors
Author-email: dev@conestack.org
License: Simplified BSD
Keywords: node pyramid cone web
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
License-File: LICENSE.rst
Requires-Dist: proto-plus==1.18.1
Requires-Dist: google-api-core==1.26.3
Requires-Dist: google-api-python-client==2.2.0
Requires-Dist: google-auth==1.29.0
Requires-Dist: google-auth-httplib2==0.1.0
Requires-Dist: google-auth-oauthlib==0.4.6
Requires-Dist: google-cloud-core==1.6.0
Requires-Dist: google-cloud-firestore==2.1.0
Requires-Dist: google-cloud-storage==1.37.1
Requires-Dist: google-crc32c==1.1.2
Requires-Dist: google-pasta==0.2.0
Requires-Dist: google-resumable-media==1.2.0
Requires-Dist: googleapis-common-protos==1.53.0
Requires-Dist: setuptools
Requires-Dist: cone.app<1.1.0
Requires-Dist: requests
Requires-Dist: firebase_admin==4.5.3
Provides-Extra: test
Requires-Dist: zope.testrunner; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

.. image:: https://img.shields.io/pypi/v/cone.firebase.svg
    :target: https://pypi.python.org/pypi/cone.firebase
    :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/cone.firebase.svg
    :target: https://pypi.python.org/pypi/cone.firebase
    :alt: Number of PyPI downloads

.. image:: https://travis-ci.org/bluedynamics/cone.firebase.svg?branch=master
    :target: https://travis-ci.org/bluedynamics/cone.firebase

.. image:: https://coveralls.io/repos/github/bluedynamics/cone.firebase/badge.svg?branch=master
    :target: https://coveralls.io/github/bluedynamics/cone.firebase?branch=master


This package provides a firebase integration in to cone.app.


Installation
------------

Include ``cone.firebase`` to install dependencies in your application's
``setup.py``.


Configuration
-------------

Adopt your application config ini file to define firebase related API keys.

.. code-block:: ini

    [app:my_app]
    use = egg:cone.app#main

    cone.plugins =
        cone.firebase

    cone.authenticator = firebase

    firebase.web_api_key = xxx
    firebase.service_account_json_file = path/to/service_account.json

also in your ugm.xml you can optionally add the `firebase_user` checkbox:

.. code-block:: xml

    <users_form_attrmap>
        ...
        <elem>
            <key>firebase_user</key>
            <value>Firebase User</value>
        </elem>
    </users_form_attrmap>

When you want to upgrade an existing user to FB, you can do this by checking
`firebase_user` in the user edit form, butt attention: you have to manually
enter the password since the firebase API expects the password in cleartext.

Contributors
============

- Robert Niederreiter
- Phil Auersperg


Changes
=======

0.1 (2025-10-25)
----------------

- Initial


License
=======

Copyright (c) 2021, BlueDynamics Alliance, Austria
Copyright (c) 2021, Cone Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
