This example embeds an authenticated request to a service into the template for /hub/home
.
The user may not be logged in to the service when the page is requested,
so we must process the oauth login to the service in that event.
To avoid the user having to experience any of the login process, this requires:
- attempting to fetch the endpoint