Ricerche recenti


Nessuna ricerca recente

Daniel Korsgaard's Avatar

Daniel Korsgaard

Data ingresso 16 ott 2021

·

Ultima attività 16 ott 2021

Seguiti

0

Follower

0

Attività totali

2

Voti

0

Abbonamento

1

PANORAMICA ATTIVITÀ

Ultima attività di Daniel Korsgaard

Daniel Korsgaard ha commentato,

CommentoSingle sign-on

Sorry to bring this up again, I have an issue when trying to match the user_fields in PHP. The User does not get updated / created with the custom fields filled. 


$jwtToken = \Firebase\JWT\JWT::encode([
'name' => $principal->getName(),
'email' => $principal->getEmail(),
'external_id' => $principal->getId(),
'iat' => (int) $now->format("U"),
'exp' => (int) $expire->format("U"),
'user_fields' => json_encode(["user_id" => $principal->getId(), 'newtest' => 'should have some value'])
], 'secret', 'HS256');

I'm not sure if I have misinterpreted this part. But when using the web widget, this seems like the only plausible way to create/update a user without calling the API. 

Visualizza commento · Data ultimo post: 30 ago 2021 · Daniel Korsgaard

0

Follower

0

Voti

0

Commenti