Giter Site home page Giter Site logo

Comments (9)

syl-p avatar syl-p commented on September 18, 2024 1

Helle @oleksandr-zh , what is your pia version and your pia-back version ?

Can you confirm ? ENABLE_AUTHENTICATION=true in your .env file ? When you have checked it, please make a CTRL + MAJ + R to reload you home page.

from pia-back.

kevin-atnos avatar kevin-atnos commented on September 18, 2024

Hello,

Indeed, you need to fill this "Server URL Configuration" form with 3 elements:

  • Your Backend URL ;
  • Your client ID ;
  • And your client SECRET ;
    This way, your Frontend application will link correctly to your Backend application and it will activate the authentication mode.

I have updated the section you are talking about in the README:
https://github.com/LINCnil/pia-back#configure-app

I agree it wasn't clear. Now you have a better example on how to get your Client ID and Client SECRET.

I hope it will help you complete your installation. Just let me know.

Regards,

from pia-back.

oleksandr-zh avatar oleksandr-zh commented on September 18, 2024

Thank kevin-atnos

image

But, i still have error:
image

image

What am I doing wrong ?

from pia-back.

oleksandr-zh avatar oleksandr-zh commented on September 18, 2024

Oh, sorry. I didn't start the server bin/rails s -b 172.17.15.13 -p 3000.
Now i have the following question.
image
How can I activate users?

from pia-back.

kevin-atnos avatar kevin-atnos commented on September 18, 2024

Hello,

Now you should have created an admin account, following this: https://github.com/LINCnil/pia-back#create-admin-account

With this account, you can login, and then you will be able to create new users in the "Users" page.

Once you have created a new user with your admin account, this user will receive an email with an activation code (be sure to configure SMFTP adequately: https://github.com/LINCnil/pia-back#smtp-configuration).

Then this user should access your Front URL and configure the Back to enable the authentication mode, as you did here:
image

Once he is connected to your back and sees the authentication block, he should click on "activate account" and continue with the process (define a password, ...).

Once done, he will be able to login and start working on PIAs he has been affected to.

Regards,

from pia-back.

oleksandr-zh avatar oleksandr-zh commented on September 18, 2024

Thanks for the answer.
When i try login, i see (authentication.errors.sign_in.404)
image

and this (console):
image

The user is created and permissions granted:
image

from pia-back.

oleksandr-zh avatar oleksandr-zh commented on September 18, 2024

When i use Forgotten link. end enter code, i see next
image

Then click ""Confirm" ( console):
image

When you try to login with a new password
image

from pia-back.

kevin-atnos avatar kevin-atnos commented on September 18, 2024

Hello @oleksandr-zh,

Very strange!
Would you like to have a meeting with us so that we can try to understand better what's going on and also solve your issue?

Can I get your email address so that we can continue by emails please?
Else, you can also join us at [email protected] and we can find a slot to check all of that.

Regards,

Kévin

from pia-back.

kevin-atnos avatar kevin-atnos commented on September 18, 2024

Hi @oleksandr-zh!

Thank you for joining us in a meeting, we are glad to have solved your issue :)
I will close this issue but if you need any more help you can create another issue on Github here.

For anyone coming here:
The issue was the missing ENABLE_AUTHENTICATION=true key missing in the .env file.

Regards,

from pia-back.

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.