Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #519

Open
aparveen opened this issue Nov 11, 2021 · 3 comments

Comments

@aparveen
Copy link
Contributor

**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
Copy link
Contributor Author

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

@sumitzarkar
Copy link
Contributor

@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

@aparveen
Copy link
Contributor Author

aparveen commented Dec 7, 2021

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants