GithubHelp home page GithubHelp logo

Comments (5)

vklimontovich avatar vklimontovich commented on June 1, 2024

We use NextAuth under the hood, so technically it's possible. We even have a credentials authorization which can be enabled by providing TEST_CREDENTIALS=1.

That being said, we don't have nor internal resources, neither good reason to implement that. But we would welcome a contribution

from jitsu.

kg-emid avatar kg-emid commented on June 1, 2024

Well the information about TEST_CREDENTIALS variable is a little bit wrong.
TEST_CREDENTIALS exists indeed, however, as far as I see from sources, it expects from us to pass auth information in format login:hashed_password into that. You can pass multiple accounts, all you need is just separate them with comma, i.e. login1:pass1,login2:pass2.

To generate hashed password we can use the utility from this application which could be found here. To use it, you need to attach to container of console application, and then run command and pass desired password as an argument, i.e.

docker-compose exec console /bin/bash
npm run tool:hash 12345678

, where 12345678 - password I want to get hash for.

After that you should see the message in console with hashed password, something like that:

INFO [password-hash]: Hashing 12345678 → fdaf73a55f267b0fa16b6d0e99239b04.a0082a3069d5cd0d3032eece8481fcf740b7ae9aaf3bc92734c95a639d53491a2f88345b5a41ac93329cfa14a2a2b54dd2a5f87c8fe59463bbe4136331967ac1

After that you can use it in your .env file like that:

TEST_CREDENTIALS="[email protected]:fdaf73a55f267b0fa16b6d0e99239b04.a0082a3069d5cd0d3032eece8481fcf740b7ae9aaf3bc92734c95a639d53491a2f88345b5a41ac93329cfa14a2a2b54dd2a5f87c8fe59463bbe4136331967ac1"

Unfortunately, there is no information about TEST_CREDENTIALS variable in docs, so it took me some time to figure out how to use it. Hope it will save some time for someone :)

from jitsu.

vklimontovich avatar vklimontovich commented on June 1, 2024

Thanks, @kg-emid! That's how it works indeed. The reason we haven't documented it is that the purpose of this var is to run automated tests

from jitsu.

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.