IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Detect inactivity of User

Open jacmiller12 opened this issue 6 years ago • 2 comments

Hello Team,

I am using the ABP framework in which they are using identity server 4. I need to detect the inactivity of user for example: If the User is not active for 10 mins then it will be logout(expire the cookie). So How I will achieve this using identity server.

Configuration

        public Client(Guid id, [NotNull] string clientId)
        : base(id)
        {
            Check.NotNull(clientId, nameof(clientId));

            ClientId = clientId;

            ProtocolType = IdentityServerConstants.ProtocolTypes.OpenIdConnect;
            RequireClientSecret = true;
            RequireConsent = true;
            AllowRememberConsent = true;
            FrontChannelLogoutSessionRequired = true;
            BackChannelLogoutSessionRequired = true;
            IdentityTokenLifetime = 300;
            AccessTokenLifetime = 3600;
            AuthorizationCodeLifetime = 300;
            AbsoluteRefreshTokenLifetime = 2592000;
            SlidingRefreshTokenLifetime = 1296000;
            RefreshTokenUsage = (int)TokenUsage.OneTimeOnly;
            RefreshTokenExpiration = (int)TokenExpiration.Absolute;
            AccessTokenType = (int)IdentityServer4.Models.AccessTokenType.Jwt;
            EnableLocalLogin = true;
            ClientClaimsPrefix = "client_";
            AllowOfflineAccess = true;
            AllowedScopes = new List<ClientScope>();
            ClientSecrets = new List<ClientSecret>();
            AllowedGrantTypes = new List<ClientGrantType>();
            AllowedCorsOrigins = new List<ClientCorsOrigin>();
            RedirectUris = new List<ClientRedirectUri>();
            PostLogoutRedirectUris = new List<ClientPostLogoutRedirectUri>();
            IdentityProviderRestrictions = new List<ClientIdPRestriction>();
            Claims = new List<ClientClaim>();
            Properties = new List<ClientProperty>();
        }

so just wanted to know how it will be achievable. Thanks in advance.

jacmiller12 avatar Jul 17 '20 05:07 jacmiller12

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

stale[bot] avatar Jul 31 '20 05:07 stale[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 26 '20 19:11 github-actions[bot]