If I want to use a sample code for Oauth2 from the JSAPI samples, do I need to host that page from the Portal site that I want to auth on?