Exemple #1
0
        public async Task <PersistedGrantDto> GetPersitedGrantAsync(string key)
        {
            var persistedGrant = await _persistedGrantRepository.GetPersitedGrantAsync(key);

            if (persistedGrant == null)
            {
                throw new UserFriendlyErrorPageException(string.Format(_persistedGrantServiceResources.PersistedGrantDoesNotExist().Description, key), _persistedGrantServiceResources.PersistedGrantDoesNotExist().Description);
            }
            var persistedGrantDto = persistedGrant.ToModel();

            return(persistedGrantDto);
        }