Coder Social home page Coder Social logo

Comments (5)

RoboMagus avatar RoboMagus commented on May 23, 2024 1

I see there was a problem on my part. A typo in the allowed authentication redirect url...

This should already be the case, but sometimes the names are not exposed correctly. I'm sure it works with gitlab as that's what I tested it with but I'm not sure about other providers. The usernames have to be unique across all providers so if you already have a user from another source with the same username it will fallback to generating a random one.

And that would clarify why I'm getting randomized usernames when trying to login using Authentik; I'm using the same prefered username as what I already have configured in Vikunja's local users. Oops 🥲

I'll use your suggestion to migrate my data from one account to the other. Thanks!

from vikunja.

kolaente avatar kolaente commented on May 23, 2024

What version are you using? Can you reproduce this with the latest unstable?

from vikunja.

RoboMagus avatar RoboMagus commented on May 23, 2024

Wow, great response time!!
I'm currently on Vikunja api version v0.18.1. Not sure how to find the docker image version though.
I'll quickly try to pull unstable and get back to you after I try to reproduce it.

from vikunja.

RoboMagus avatar RoboMagus commented on May 23, 2024

Yes, on the unstable version, I can now delete these users from commandline.
However, when trying to login now using Authentik, as I used to before, I now get an error page:

Redirect URI Error
The request fails due to a missing, invalid, or mismatching redirection URI (redirect_uri).

Related to this: Can vikunja be made to grab e.g. the preferred_username, name, nickname, or anything similar from the open-id scopes instead of creating a random username?
And would it be possible to migrate all data from an existing local user to a user created by logging in using openid?

from vikunja.

kolaente avatar kolaente commented on May 23, 2024

However, when trying to login now using Authentik, as I used to before, I now get an error page:

Did you upgrade to the unstable frontend as well?

Related to this: Can vikunja be made to grab e.g. the preferred_username, name, nickname, or anything similar from the open-id scopes instead of creating a random username?

This should already be the case, but sometimes the names are not exposed correctly. I'm sure it works with gitlab as that's what I tested it with but I'm not sure about other providers. The usernames have to be unique across all providers so if you already have a user from another source with the same username it will fallback to generating a random one.

And would it be possible to migrate all data from an existing local user to a user created by logging in using openid?

You could, but there's no real supported migration path or similar. You would need to manually delete the local user in the DB (not with the cli command because that would remove all user data as well) and then change the id of the other user to the one of the deleted local user. Make a backup before trying this.

from vikunja.

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.