Dear fellow members,
let's say I create a Dynamics Extension and publish it to AppSource. "John Doe" likes my Extension - he logs into his Dynamics and installs my Extension from AppSource.
- What would be the best way to present him a "Start trial" option?
- How do I authenticate that it is John applying for trial?
- I want to ensure that John gets just one trial period. I guess he should somehow authenticate via Azure Active Directory or ADFS?
I am imagining it like this. John installs my Extension. He logs into Dynamics, then he would go to Extension settings page and some popup window would ask him to start a trial.
John clicks on "Start trial", his username johndoe@contoso.com from "userSettings" entity would be sent to external API. This API would check if he has had a trial before and send back valid "license key".
John would use this "license key" in my Extension.
But John is clever - after trial period is over he opens a Postman. He makes an API call with different username john2@awesomecompany.com and he gets another "license key".
I would like to authenticate John inside Dynamics via Active Directory somehow. This would ensure that this is really John Doe asking for a trial.
I haven't found anything on this topic and I would be grateful for any kind of insight.
Best regards.