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

login button is disabled #174

Closed
wzhu1 opened this issue Apr 10, 2017 · 22 comments
Closed

login button is disabled #174

wzhu1 opened this issue Apr 10, 2017 · 22 comments

Comments

@wzhu1
Copy link

wzhu1 commented Apr 10, 2017

I downloaded the recent release ago-assistant-2.7.2.zip from https://github.com/Esri/ago-assistant/releases and installed the ago-assistant tool on my local server. But the login button is disabled. The language setting for my browser is English(United States). Anyone have any idea about this?
thanks!

@jgravois
Copy link
Contributor

But the login button is disabled

which login button? Log in to ArcGIS Online?
do you mean that its grayed out and not clickable, or that clicking it generates an error?

@jgravois
Copy link
Contributor

looks like something similar was logged in #101. what happens when you set the browser locale to English (US)?

@wzhu1
Copy link
Author

wzhu1 commented Apr 10, 2017 via email

@wzhu1
Copy link
Author

wzhu1 commented Apr 10, 2017 via email

@jgravois
Copy link
Contributor

i can't reproduce that behavior on my side. if you could open up the browser developer tools and let us know whether an error is being logged or a resource is failing to load, that would be really helpful.

@wzhu1
Copy link
Author

wzhu1 commented Apr 10, 2017 via email

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

Is this happening in multiple browsers (Chrome, Firefox, etc)?

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

Have you tried downloading again just to rule out any issues with the original zip file? Also, just double checking, can you confirm you downloaded the built app and not the source code?
https://github.com/Esri/ago-assistant/releases/download/v2.7.2/ago-assistant-2.7.2.zip

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

OK, two issues. I think you've got a mismatch of folders because you shouldn't be able to "build" the app from the zip file I linked. That's the pre-built app with no dev components. I just downloaded and verified it works fine. Here are two things to try troubleshooting next.

First, try downloading the latest release and unzip to a clean directory. That is the pre-built app so you don't need to do anything other than copy it to IIS and load it.

Second, if you want to build the app from the source, then double check that you have installed all of the dependencies with npm install and that there aren't any errors during that or the build step. If your error messages above are from a custom build, then it looks like there is a problem with the portal library which would indicate a problem with the rollup step in grunt.

Give those a shot and let us know what happens.

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

The screenshot isn't coming through, but I'm guessing it says "invalid redirect_uri." To use your own app id (or to further customize the app) you'll need to build it from source. The instructions step you through that process, but it sounds like you've already started down that path. What are the warnings you get during the build?

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

The screenshots aren't coming through. Can you paste the text?

The reason it's not working out of the box is because it is registered for OAuth in an ArcGIS Online org with a pre-defined set of valid redirect URIs and your local dev server is not registered as one of those URIs. When you register the app in your own org, you can add a redirect URI for your own dev environment so it will work.

Portal logins should work out of the box (OAuth is only used for ArcGIS Online logins in this app). A workaround to your immediate issue is to bypass OAuth: select the Portal option, then enter https://www.arcgis.com as your portal url and then your normal org credentials. That will bypass OAuth and get you into your account.

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@jgravois
Copy link
Contributor

@wzhu1 if you want to upload screenshots, drag and drop them when posting your message directly on #174

you can't just reply to your email notification and include an attachment.

@ecaldwell
Copy link
Contributor

Rollup isn't installed. Try installing it globally from the command line npm install -g [email protected], then run the build again.

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

@ecaldwell
Copy link
Contributor

Great! I'll take a look and see if we can clarify how to deploy the app in the documentation.

@wzhu1
Copy link
Author

wzhu1 commented Apr 11, 2017 via email

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

No branches or pull requests

3 participants