Activities of "adhamawadhi"

OK, thanks for your help.

Yes, and it works fine. But I need it encrypted

Angular app first time login is work fine, but when refresh the page there is an error occured due to reading AccessToken which is encrypted in line remember-me.service.ts

ERROR SyntaxError: Unexpected token 'õ', "õ¿‹Ø]&¶`"... is not valid JSON
    at JSON.parse (<anonymous>)

Steps to reproduce

  • Enable OpenIddict Token Encryption
  • Login in angular for first time (it wokrs fine)
  • Open explorer Console devleoper
  • Refresh the page ( press F5)
  • you can see Exception in Consol tab

Suggestion to Solve I can see the id_token is available to read same as access_token when encryption enabled. Try read access_token when error occured read id_token if exists.

Yes, I did that too, but the problem still persists. Were you able to reproduce this issue?

hi, This happens even in MVC. To reproduce as I noticed: you wait (without any actions somtimes) till Token expired but not the cookie, when the Web call HostApi which not accept Web Token. this issue happend.

I tried to change cookie and Token configs but still face it. Most of times Logging out not solve it. Nor clean browser cache. This happens in development and prodctuion environments

Currently The ONLY WORKAROUND FOR THIS : Clean REDIS cache

I think this related to some enryption keys for Token stored in REDIS cache, when clear the cache the system re-generate some keys.

Question

How can implement phantom token with OpenIddect? Please look below url https://curity.io/resources/learn/phantom-token-pattern/

Hello,

Why it only happened on AR and RU?

Showing 1 to 7 of 7 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13