Git Product home page Git Product logo

Comments (6)

tessalt avatar tessalt commented on June 10, 2024

what was the payload the first time you sent it, and then what was the updated payload? If you just remove the badges field I don't think it will update it, you will need to send through an empty array.

from talk.

jbotte avatar jbotte commented on June 10, 2024

Here was my original

{
"user": {
"id": "25",
"email": "[email protected]",
"username": "anotheruser",
"badges": [
"BadgeName"
],
"url": "https://mysite.com/profile"
}
}

Here is a screenshot of the badge working

Screenshot 2023-05-23 at 6 24 02 PM

It seems to me that the badge is updated and saved only on first sso token auth and after that the system ignores it, I will try and test a bit more and confirm.

I may try rotating the secret and invalidating all old tokens and then try again.

I do appreciate your time, thanks for getting back to me.

from talk.

jbotte avatar jbotte commented on June 10, 2024

Can confirm even after invalidating old SSO secret and generating new tokens again the badges do not update,

Here is what I have tested

payload with empty array for the users.badges field
payload with 1 string array with the badge string of "badge1"
payload with 2 string array of ["badge1","badge2"]

created a new user with the new payload and it shows the newest badge input.

from talk.

tessalt avatar tessalt commented on June 10, 2024

are you including an iat field in your payload?

from talk.

jbotte avatar jbotte commented on June 10, 2024

It seems when I enable iat, exp, jti things work as expected.

I'll test and see which one did it or if I need all 3 turned on.

May be worth updating the documentation to say that badges require them?

from talk.

jbotte avatar jbotte commented on June 10, 2024

thanks for your help @tessalt !

from talk.

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.