Coder Social home page Coder Social logo

SSO fails with DSM sso server about planka HOT 6 CLOSED

halfu avatar halfu commented on May 28, 2024
SSO fails with DSM sso server

from planka.

Comments (6)

meltyshev avatar meltyshev commented on May 28, 2024 1

Hi! You are right, the problem is that your IDP doesn't support the profile scope, but Planka needs it to create an account (this scope contains a user name, which cannot be empty). Unfortunately we can't change anything on our side to solve this. I think there should be some way to add this scope to your IDP.

from planka.

halfu avatar halfu commented on May 28, 2024 1

Thanks for your quick reply, I will dig into dsm synology system to get a solution then.
I will report back if I successed.

from planka.

daniel-hiller avatar daniel-hiller commented on May 28, 2024

Hi,
as a dirty quickfix you do do this....
in server/api/helpers/users/get-or-create-one-using-oidc.js

change the folling lines

Line 36:
from if (!userInfo.email || !userInfo.name) {
to if (!userInfo.email || !userInfo.username) {

Line 56:
from name: userInfo.name,
to name: userInfo.username,

This change will set the username as name too, because of Synology does not support friendly names for users
At the moment it's not possible to change the name in Planka when OIDC is in use.

We will post an update with more options to configure OIDC and make the name changeable, if your sso provider does not support them.

from planka.

halfu avatar halfu commented on May 28, 2024

Thanks A lot for your help. I have switched my sso server to authentik , and everything works great.
And I agree that give more options to configure OIDC in planka side is a good idea.

from planka.

halfu avatar halfu commented on May 28, 2024

Since my problem sovled, I closed this issue.

from planka.

john8329 avatar john8329 commented on May 28, 2024

Hi, I'm having the same issue with DSM, and I'd like for simplicity to use it instead of other solutions. Would it be possible to let the app tolerate the absence of the profile claim and just use username if it's missing?

Thanks a lot

from planka.

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.