Git Product home page Git Product logo

Comments (1)

Alevale avatar Alevale commented on July 28, 2024

i just had this issue a couple of days ago.
my structure is the following

/backend
    -mypythonfile
/config
    -gitkit-server-config.json
    -oauthkeyfile.p12
/frontend
server_config_json = path.realpath(path.join('config', 'gitkit-server-config.json'))

json_data = simplejson.load(open(server_config_json))

key_file = open(path.realpath(path.join('config', 'oauthkeyfile.p12')))
key = key_file.read()
key_file.close()

clientId = json_data.get('clientId')
projectId = json_data.get('projectId')
if not clientId and not projectId:
  raise Exception('Missing projectId or clientId in server configuration.')

gitkit_instance = gitkitclient.GitkitClient(
    clientId,
    json_data['serviceAccountEmail'],
    key,
    json_data['widgetUrl'],
    json_data['cookieName'],
    None,
    projectId)

this is the only workaround that i found till this moment, will update the FromConfigFile method so that it allows some path directive

from identity-toolkit-python-client.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.