FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 451 forks source link

Suggested way to handle deactivated users #683

Open fliespl opened 2 years ago

fliespl commented 2 years ago

We are using oauth2 server to authorize our users into internal applications.

Till now - leaving employee was deactivated and his access_token + refresh_token removed (once access token expired after 3600 seconds he was logged out in internal applications).

I am curious if there is a better way to handle it. I.e. using UserChecker and fail to refresh token once deactivated user tries to refresh. Tokens would then expire naturally and clean itself within a command after specific time.