GithubHelp home page GithubHelp logo

Remove persona support about frontend HOT 12 OPEN

hfiguiere avatar hfiguiere commented on August 29, 2024
Remove persona support

from frontend.

Comments (12)

hfiguiere avatar hfiguiere commented on August 29, 2024 1

@cedricbonhomme do you mind submitting a PR for the persona/browserid removal?

It should be noted that the proper way to do it would be to have it as a fallback to force setting the password (my instance only uses browserid) if it doesn't exists. When Mozilla finally sunset the server it can be permanently stripped.

I'll start with what you have done. Thanks !

from frontend.

cedricbonhomme avatar cedricbonhomme commented on August 29, 2024 1

I just deployed a new instance on my computer. Self-login is already the default when going to /setup for the first time.
It seems that I can simply remove the support of persona as I did on my instance.

from frontend.

Dannyzen avatar Dannyzen commented on August 29, 2024

Hey @hfiguiere how would one go about disabling persona in the app and enabling alternative logins?

from frontend.

hfiguiere avatar hfiguiere commented on August 29, 2024

more a question for @jmathai .

from frontend.

jmathai avatar jmathai commented on August 29, 2024

@Dannyzen Persona is one of the options but it can be disabled via a configuration setting. Are you looking to remove it entirely wherever possible? I can remove it...

from frontend.

Dannyzen avatar Dannyzen commented on August 29, 2024

@jmathai thanks for responding. I am looking for the definition of which configuration will disable it.

from frontend.

jmathai avatar jmathai commented on August 29, 2024

@Dannyzen looks like I was incorrect. Logging in via a locally hosted database is optional (see here) but persona is on by default and cannot be removed (see here).

from frontend.

cedricbonhomme avatar cedricbonhomme commented on August 29, 2024

Hello,

For your information I've made some minor modification on my instance (https://photos.cedricbonhomme.org).

And in fact, I almost never used the BrowserId authentication method. I'm trying to remove it:
https://github.com/cedricbonhomme/frontend/commits/cedric
If this can help.
No problem on my instance, but I need to test with a new setup.

from frontend.

cedricbonhomme avatar cedricbonhomme commented on August 29, 2024

Yes, I can submit a PR. No problem. So you're thinking about having BrowserId as fallback? I think it is the case by default. I changed that: https://github.com/cedricbonhomme/frontend/commit/9e0811ba59a6ce0c7077011112834ae8c452b156#diff-cd7673220e591377b45ebab84ba79766L218

In fact on my branch, there are some personal adaptations for my instance. I have totally removed the support of browserID and Facebook login. I also have removed the link to the apple store.

from frontend.

cedricbonhomme avatar cedricbonhomme commented on August 29, 2024

Initially I was also using BrowserId to log myself as admin. When a decided to switch to the local authentication method I had to edit the database manually. It was one year ago, I don't really remember... I think that I had to change the the column "owner" of the photos.

from frontend.

Dannyzen avatar Dannyzen commented on August 29, 2024

@cedricbonhomme did you end up putting in a pr?

from frontend.

cedricbonhomme avatar cedricbonhomme commented on August 29, 2024

No, not yet. As I explained on my instance I removed browserID and Facebook login methods.
But I can without problem send a pull request with only the removal of browserID.
I'll do that.

from frontend.

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.