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

embedding Citizen Reporter into Hub page

Open Nataliya1 opened this issue 5 years ago • 8 comments
trafficstars

hi @aparveen. I have a Citizen Reporter site with AGO signin enabled (only AGO signin, and no anonymous accss). And the sign in works as expected, but if I embed my Citizen Reporter app into a Hub page, I get an extra Signin window. I am not sure if that's the issue with Citizen Reporter or a Hub. image Please advise. Thank you.

Nataliya1 avatar Oct 30 '20 18:10 Nataliya1

@Nataliya1 we will look into it.

aparveen avatar Oct 30 '20 18:10 aparveen

@Nataliya1 is your app shared publicly? Also, how are you embedding the app via iframe or the application card?

aparveen avatar Nov 02 '20 16:11 aparveen

@aparveen yes, it is shared publicly. I tried both iframe and an application card, and got the same outcome.

Nataliya1 avatar Nov 02 '20 16:11 Nataliya1

Hi @Nataliya1, this isn't specific to Hub. Unfortunately, this is the behavior with any app or web map embedded in an iframe and has to do with how the oauth login dialog is handled in an iframe for security reasons. You will notice if you click OK, it will open a new window with the typical sign-in dialog.

I do have a potential suggestion. Assuming you are doing this because the expectation is that users will create community accounts and to sign in with those accounts to log a report. One potential workaround would be to only share the problem reporter app with the Followers group. You can also now configure rows in the site to only share with users who are members of specific groups.

So you could hide the app from the site and only make available to members of the followers group. Then instruct the user to sign in and follow, then they would have access to the app and already be signed into the site. If they come back in the future they will just have to sign in through the site before they can access the app, and they will never hit this issue.

chris-fox avatar Nov 02 '20 18:11 chris-fox

Hi @chris-fox thank you for the information. I will try your suggestion and report back.

Nataliya1 avatar Nov 02 '20 21:11 Nataliya1

@chris-fox, I was able to test your workaround, and it seems to be working as expected.

But I do have another obstacle, which I posted about in here, issue #476 .

So with your solution this is how my Hub page looks like with Embedded app, when a user doesn't have an account yet (hasn't join the initiative). And this is great. image

But once a user joins the initiative (creates a hub account), the citizen reporter app will become visible, but because there is a Signin/Splash window a user has to click on 'Sign in with' to get to the app itself. This an extra click, and I with there was a way to get rid of the Home/Splash screen, but still have option to sign in. Or a least have more options to customize the Home/Splash screen - issue #477.

Instead of this: image

Go right to this: image

Any suggestions?

Appreciate your help a lot. Nataliya

Nataliya1 avatar Nov 02 '20 22:11 Nataliya1

@Nataliya1, so this is what I am finding. If the app isn't shared publicly, then when I access the app I am logged in (even when embedded in the Hub site). When I submit a new problem report or comment on an existing report, my user name is stored in the editor tracking. So it is actually logged into the app and storing the user id.

However, because the login button isn't available the My Submissions capability isn't available. Is the the primary concern you have as well?

chris-fox avatar Nov 03 '20 13:11 chris-fox

@chris-fox, Yes, that is part of the problem that people cannot track their submissions under 'My Submissions' dropdown, when the Home/Splash screen is removed. We really would like to have that capability.

Nataliya1 avatar Nov 03 '20 15:11 Nataliya1