Giter VIP home page Giter VIP logo

Comments (4)

woj-tek avatar woj-tek commented on May 21, 2024

We do have a REST API however it's not possible to manage API Keys before creating just one (for example using installer).

If your case, where the aim is to have unattended setup, you have following options:

  • connect using XMPP client and execute ad-hoc command (see XEP-0050: Ad-Hoc Commands) on REST module of HTTP-API component to add API key (same ad-hocs are used in Web AdminUI)
  • in the repository add user rest@http and for that user add (in tig_pairs bridged via tig_nodes as explained in Tigase Schema documentation property with key = api-keys and value being XML representation, e.g.: <api-key owner="[email protected]" key="a2751e90-178b-461c-adf4-39c6315a52e4"/>
  • create your own implementation of ApiKeyRepository (tigase.http.modules.rest.ApiKeyRepository) that would retrieve API keys from desired source (file storage or other database/repository)

from tigase-server.

woj-tek avatar woj-tek commented on May 21, 2024

You can also use Tigase Command Line Management Tool which internally is an XMPP client, but allows you to manage Tigase from the command line.

from tigase-server.

agustino-lim avatar agustino-lim commented on May 21, 2024

Hello @woj-tek ,

I encounter similar issue. I tried to run this script in the docker https://github.com/tigase/tigase-docker-support/blob/master/8.0.0/scripts/start.sh. It performs upgade-schema operation, but adminJID is not created in the schema. So I am not able to login into admin page after the server is started.

Can you please advise why adminJID is not created?

Thanks

from tigase-server.

woj-tek avatar woj-tek commented on May 21, 2024

@agustino-lim I assume you don't want to to use WebInstaller (as described in QuickStart guide)?

And you do provide your configuration config.tdsl so that the schema is correctly created? In that case, after you start the server you can simply use jabber:iq:register and register account with JID matching one configured in config.tdsl file.

from tigase-server.

Related Issues (20)

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.