Skip to content

Prisma adapter for keycloak provider : remove not-before-policy before linking accountΒ #7655

@Kephas3

Description

@Kephas3

Description πŸ““

Hi,

Here's a problem i encountered while integrating the prisma adapter (nuxt 3.5.1 with Sidebase 0.5.0)

Keycloak JWT may contain "not-before-policy", but Dash6 is not allowed in Prisma and failed in error while linking.

Apparently, it's not possible to remove this tag in jwt from keycloak.

How to reproduce β˜•οΈ

I could bypass the error generated by prisma by directly modifying in index.js the following :

linkAccount: (data) => {
            delete data['not-before-policy'];
           return p.account.create({ data })},

Then account where well linked in my postGre DB.

Contributing πŸ™ŒπŸ½

Yes, I am willing to help implement this feature in a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions