Skip to content

Commit

Permalink
Tamper with the demo id_token a little bit to fix the demo (#177)
Browse files Browse the repository at this point in the history
exp 1585335149 -> 2585335149
( 2020-03-27 -> 2051-12-04 )

The demo token is a token generated by azure, the public key to verify it is
no longer available anyway. The demo can't and doesn't verify the integrity.

If we want, we could generate a token ourselves and put the public keys in this
project. If it's hardcoded it would force to serve always from the same url (issuer)
(for example localhost:3000). If needed it could also be generated on the fly depending
on the current url.. But for now the demo doesn't do anything related to token validation

Signed-off-by: HARPER Jon <jon.harper87@gmail.com>

Signed-off-by: HARPER Jon <jon.harper87@gmail.com>
  • Loading branch information
jonenst committed Aug 25, 2022
1 parent 6856864 commit 09ec92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/UserManagerMock.js
Expand Up @@ -23,7 +23,7 @@ export class UserManagerMock {
profile: { name: 'John Doe', email: 'Jhon.Doe@rte-france.com' },
id_token:
'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IllNRUxIVDBndmIwbXhvU0RvWWZvbWpxZmpZVSJ9.eyJhdWQiOiI5YzQwMjQ2MS1iMmFiLTQ3NjctOWRiMy02Njg1OWJiMGZjZDAiLCJpc3MiOiJodHRwczovL2' +
'xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzUwMmRhZDUtZDY0Yy00NmM3LTlkNDctYjE2ZjU4MGZjZmE5L3YyLjAiLCJpYXQiOjE1ODUzMzEyNDksIm5iZiI6MTU4NTMzMTI0OSwiZXhwIjoxNTg1MzM1MTQ5LCJhaW8iOiJBV1FB' +
'xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzUwMmRhZDUtZDY0Yy00NmM3LTlkNDctYjE2ZjU4MGZjZmE5L3YyLjAiLCJpYXQiOjE1ODUzMzEyNDksIm5iZiI6MTU4NTMzMTI0OSwiZXhwIjoyNTg1MzM1MTQ5LCJhaW8iOiJBV1FB' +
'bS84UEFBQUF3Q0xyTDRIUEUvTnVjOU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