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

how to configure? #5

Closed
raiokocha opened this issue Oct 7, 2019 · 3 comments
Closed

how to configure? #5

raiokocha opened this issue Oct 7, 2019 · 3 comments

Comments

@raiokocha
Copy link

where do I put my key API? and where do I put my token?

@markneilpascual
Copy link

where do I put my key API? and where do I put my token?

@zcernigoj
Copy link

zcernigoj commented Jan 13, 2021

Hey,

Similar question popped up a few days ago on our forum. So, most of the answer is from there, but I will add the info about the token location.

Sentinel Playground code here hasn’t been updated in quite some time, so there are some things that don't work out of the box.

The token client id would go into the /public/tokenAssisted.html and the token would be generated with the code there, but at the moment, this user authentication mechanism is not available for general public use.

One option to fix it yourself is that you remove all AuthWindow and recaptchaAuthToken authentication and replace it with a call to requestAuthToken() from sentinelhub-js (parameters are clientId and clientSecret which you can get from the SH Dashboard), followed by a call to setAuthToken.

Alternatively, you can use sentinelhub-js and react-leaflet (for example) to build a similar application from ground up, which also shouldn't be difficult to do.

If you have some more questions, the best place to ask is the forum (we generally answer faster there).

Best, Ziga

@zcernigoj
Copy link

I will close this issue for now in favour of forum questions.

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

3 participants