Forum Discussion
rajulshah
3 years agoResident Rockstar
Refreshed Token using UsernamePassword Authentication Type
Hello everyone,
In my custom connector, I am using UsernamePassword AuthenticationType, where Username = ClientId and Password = Client Secret. And using these, we are getting accesstoken. Can anyone let me know how do we get the refreshed token after it expires in this case?
artemus Any guidance would be helpful.
Thanks.
6 Replies
- artemusMicrosoft Employee
IF you are using Username and password to get an access token, then your token will need to be fetched every time the connector is invoked. Oauth authentication supports refreshing a token.
In theory you could cache the access token, but this is rather complex, and only good if you have a short duration token and there are multiple invocations of your connector in a single session.