Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing Authentication Data

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
Dom



Joined: 19 May 2013
Posts: 34

PostPosted: Fri Jan 08, 2016 8:46 am    Post subject: Changing Authentication Data Reply with quote

Hi

Using ILS in a wpf application (not control), and essentially configuring it as per the wpf authentication sample supplied. The license uses authentication data in the form of Program level, number of days to expiry eg(Enterprise,180). I know that I can alter the authenticated data for a license and that that data gets exported up to the authentication server (on the grounds that when I import the authentication data it shows my amendments).

According to the help file I should then be able to call Reauthenticate in order to get the license updated on the end user machine without their having to uninstall and reinstall the license. So using the basic setup as per the sample application I have the following:

Code:
_license = _licenseProvider.GetLicense()
      _licenseProvider.Reauthenticate(_license, True)


However, no matter how many times I run the application the authenticated data never seems to change. Have I missed something obvious here?

Dom
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jan 08, 2016 10:42 pm    Post subject: Reply with quote

The Reauthenticate method returns the new (updated) license - but you are not using the returned result. It does not actually install the updated license. To Reauthenticate and Install the license you should use the AtomicReauthenticateAndInstallLicense. This method installs the updated license and returns it. Note that you need to handle any possible exceptions (eg WebExceptions due to no internet connection).

If you use the StartBackgroundReathentication method (like the sample projects) then AtomicReauthenticateAndInstallLicense is called automatically on a background thread periodically (you can determine the frequency). However you can still provide an option to the user to reauthenticate immediately and call the method yourself if you want.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group