Git Product home page Git Product logo

Comments (10)

casbin-bot avatar casbin-bot commented on July 26, 2024

@tangyang9464 @JalinWang @imp2002

from casdoor.

Timshel avatar Timshel commented on July 26, 2024

When searching for the issue I found this previous issue with additional information: #1184.
There is some mention of previously reverted code due to conflict and a hint on a possible way to fix it.

I won't have time to look at it so Good luck :).

from casdoor.

rimm74rus avatar rimm74rus commented on July 26, 2024

And exactly the same problem with proxmox authorization

from casdoor.

casbin-bot avatar casbin-bot commented on July 26, 2024

🎉 This issue has been resolved in version 1.632.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from casdoor.

Timshel avatar Timshel commented on July 26, 2024

Commit was reverted so probably make sense to reopen the issue.
Tested the 1.632.0 release, and it was failing too.

When manually exchanging the code for token I could see:

  "address": {
    "formatted": "",
    "street_address": "",
    "locality": "",
    "region": "",
    "postal_code": "",
    "country": ""
  },

So a bit unsure why it would fail, but I would recommend to just not include the field when there is no data.

from casdoor.

dacongda avatar dacongda commented on July 26, 2024

Commit was reverted so probably make sense to reopen the issue. Tested the 1.632.0 release, and it was failing too.

When manually exchanging the code for token I could see:

  "address": {
    "formatted": "",
    "street_address": "",
    "locality": "",
    "region": "",
    "postal_code": "",
    "country": ""
  },

So a bit unsure why it would fail, but I would recommend to just not include the field when there is no data.

can you tell us what tool / platform you are using that cause this problem ?

from casdoor.

Timshel avatar Timshel commented on July 26, 2024

I'm using https://github.com/ramosbugs/openidconnect-rs which in general follow the spec quite strictly.

Since the change in 1.632.0 was reverted I did not spend more time trying to understand why it failed even with the new format.

from casdoor.

dacongda avatar dacongda commented on July 26, 2024

I'm using https://github.com/ramosbugs/openidconnect-rs which in general follow the spec quite strictly.

Since the change in 1.632.0 was reverted I did not spend more time trying to understand why it failed even with the new format.

thanks for reply, we will try to fix it soon.

from casdoor.

dacongda avatar dacongda commented on July 26, 2024

I'm using https://github.com/ramosbugs/openidconnect-rs which in general follow the spec quite strictly.

Since the change in 1.632.0 was reverted I did not spend more time trying to understand why it failed even with the new format.

I guess you are using the gitlab example of the openidcinnect-rs. however, the gitlab exapmle example add some external fields to the UserInfoClaim, you can remove the relevant these field to fix the problem, like below.

struct GitLabClaims {
    // Deprecated and thus optional as it might be removed in the futre
    // sub_legacy: Option<String>,
    // groups: Vec<String>,
}

** Note: you need to use v1.632.0 **

from casdoor.

Timshel avatar Timshel commented on July 26, 2024

Just to clarify I'm not really using Casdoor, I'm maintaining a PR to add OpenId Connect to Vaultwarden and someone had issues with it.

As for your suggestion since the Address is part of the default CoreIdTokenClaims it's not easy to ignore.

from casdoor.

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.