crowdsource-reporter icon indicating copy to clipboard operation
crowdsource-reporter copied to clipboard

BUG-000127625 When signing into a publicly accessible Citizen Problem Reporter web mapping application in a browser in incognito mode, it redirects the user back to the same sign-in page.

Open aparveen opened this issue 4 years ago • 3 comments

**Link with a freshly deployed Citizen Problem Reporter web application will be included, if needed. Video showing this behavior is also attached to this bug.

  1. Deploy the Citizen Problem Reporter solution from ArcGIS Pro to ArcGIS Online with default settings
  2. Navigate to ArcGIS Online and change the item's settings to be shared to Everyone (public)
  3. Open an incognito browser, copy/paste the item url and view the application
  4. Enter organization credentials by clicking on the world icon on the sing-in page -At this point, the application should accept the credentials and open the application, but this does not occur and it re-directs the user back to the initial sign-in page. After clicking the world icon once more, it finally signs you in

aparveen avatar Nov 11 '21 22:11 aparveen

@CTLocalGovTeam could you please take a look at this issue and comment if this an expected behavior or not? Thanks

aparveen avatar Nov 23 '21 18:11 aparveen

@aparveen

  • We observe the same behavior when application is hosted in AGOL
  • When the User clicks the AGOL login button in the APP we call Portal.signin() method to sign in to the configured organization. And, then the ArcGIS JS Portal API takes care of authentication using Organisation's login page and then on successful login, it redirects to the app URL. As the webpage is redirected to the app it again shows the sigin screen and when next time user clicks AGOL login it has the credentials in browser so user gets logged in.
  • 'Whereas this is different in the case of applications hosted outside the AGOL. in this Identity Manger dialog is shown and on successful login to AGOL user gets logged in to the app
  • As a developer, we don't have an option to show the Identity manager dialog OR the Organizations login page. it is controlled by ArcGIS JS API

This is a known limitation for now

sumitzarkar avatar Nov 24 '21 11:11 sumitzarkar

Chris 's comment on this issue, "that is not a great user experience. I don't think we should do anything about it in the current version of Crowdsource Reporter, because this is the way it always has been. We should try to improve this in the future version though as using credentials is going to be more important with Hub community identities".

aparveen avatar Dec 07 '21 16:12 aparveen