Is there a way to set login expiry dates using Identity 3.0.0? IE if a user subscribed to a service for say 1 year and their subscription expired April 10 2021, what would be the best way to invalidate their login credentials after that date? Is this possible
using Identity?
I just found
this article as well which discussed using a service very similar to what you are describing. Its a little dated (from 2016) but the principle remains the same.
Member
6 Points
30 Posts
identity and Subscription service
Apr 11, 2020 04:40 AM|sapper6fd|LINK
Hello all.
Is there a way to set login expiry dates using Identity 3.0.0? IE if a user subscribed to a service for say 1 year and their subscription expired April 10 2021, what would be the best way to invalidate their login credentials after that date? Is this possible using Identity?
Cheers!
Contributor
4232 Points
1147 Posts
Re: identity and Subscription service
Apr 11, 2020 10:49 AM|Kulrom|LINK
There is no such built-in feature but you can always add a column ExpireDate column to your database / Model and then check against it during login
My website: ASP.NET Custom Software Development
Member
6 Points
30 Posts
Re: identity and Subscription service
Apr 12, 2020 04:05 AM|sapper6fd|LINK
Thanks Kulrom.
I just found this article as well which discussed using a service very similar to what you are describing. Its a little dated (from 2016) but the principle remains the same.
Cheers!