After my app is granted an OAuth token by the user, I take the "url" provided in the OAuth request, and the token, and make a request back to salesforce to store some settings.
In my unmanaged package testing the url looked something like this:
And this domain matched the domain in salesforce while the user was using the app.
Now that I uploaded a *Managed package though, it seems to be different. The URL in Salesforce looks like this
and the POST request to https://na3.salesforce.com/services/apexrest/customrestendpoint is returning a 404
Is this expected? Do I need to append the app namespace to my API requests to the custom REST endpoint? Or is the namespace optional and can I just omit it when creating the managed package?