How do I get and manage Bearer Token (SAAS) to use with REST

I’m trying to figure out how to get a Bearer Token in SAAS so I can pass it to my Invoke-RestMethod

How do you assign the expiration date

You can configure the token duration from the Epicor Administration Console. Select the instance and click Configure Token Authentication on the right side.

To get a token, you first send a POST request to this URL with basic authentication: https://SERVER/DB/TokenResource.svc/ . This will return a token in an XML response.

3 Likes