GithubHelp home page GithubHelp logo

cryptpad / sso Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 5.0 39 KB

CryptPad official SSO plugin

Home Page: https://cryptpad.org

License: GNU Affero General Public License v3.0

JavaScript 100.00%
cryptpad plugin single-sign-on sso

sso's Issues

No button event on setting CP password after login

Hi,

i am running 2024.3.0 with the SSO plugin, registered an OpenID provider (running authentik 2024.4.2). Redirects and consent seem to work, but I am redirected to a page where I am asked to set a cp password. Regardless of what I enter or what I click, I can't set the password (the button seems to have no event bound).

This is the first time I am trying to setup SSO, I didn't come from a working setup upgrading or something.

I am using firefox to access cryptpad

Changing cpPassword: true doesn't change anything...

Anonymized SSO config:

//const fs = require('node:fs');
module.exports = {
    enabled: true,
    enforced: false,
    cpPassword: false,
    forceCpPassword: false,
    list: [
    {
        name: 'example-provider.id',
        type: 'oidc',
        url: 'https://id.example.com/application/o/example-cryptpad/',
        client_id: "...",
        client_secret: "...",
        jwt_alg: 'RS256'
    }
    ]
};

Setup Instructions are unclear

It took me about four tries to setup SSO as well as many others, so I am going to rework the README to be clearer on the steps to take to set SSO up.

Parameter "state"

Hi,

I asked in the matrix chat and was advised to open a bug. I am trying to set up SSO using Authelia and it does not work, throwing the following error:

"Authorization Request failed with error: The state is missing or does not have enough characters and is therefore considered too weak. Request parameter 'state' must be at least be 8 characters long to ensure sufficient entropy."

Quick google shows sames/similar issue in other projects: outline/outline#2663 and hackmdio/codimd#1512

I don't know how to verify if the state parameter is being sent by the SSO plugin.

Sync username from Keycloak

When I create a new account with keycloak the account user is something like u6a2vosi8rc95t/ndpmw1bpy84qxoabl

is it what not supported: Store extra information from users coming from SSO mean or did I configure something wrongly?

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.