Get the access token. If the supplied token is null (which is the use-case for the shared), then we will search for an access token in the application resources.
shared