Esri / application-boilerplate-3x-js

Starter application that simplifies the process of building templates for the ArcGIS.com template gallery.
https://developers.arcgis.com/javascript/
Apache License 2.0
90 stars 68 forks source link

After signing in, the call to groupInfo() always looks for the group in the same organization where app is published #50

Closed CTLocalGovTeam closed 9 years ago

CTLocalGovTeam commented 9 years ago

@driskull,

When we publish a gallery app based on boilerplate and configure a group that is public but from a different organization then we see that,

  1. If you do not sign in, everything works fine
  2. If you sign in, then it doesnt find the group

This is because after signing in, the call to groupInfo() is automatically appending the orgId in the query parameters and thus trying to look for that group in the same organization.

This is what gets sent before signing in and it finds the group despite it being from different organization image

This is what gets sent after signing in and it doesnt find the group inspite it being public. Notice the orgid appended in the query parameters image

CTLocalGovTeam commented 9 years ago

Oops.. the portal was set to disallow searching content outside the organization, that's why the orgID was getting appended automatically in portal.queryGroups() in the groupInfo() query.

Confirmed that it works if portal was set to allow members to search content outside the organization. image

Closing this issue.