Coder Social home page Coder Social logo

Comments (3)

markneilpascual avatar markneilpascual commented on July 19, 2024

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

from sentinelplayground.

zcernigoj avatar zcernigoj commented on July 19, 2024

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

from sentinelplayground.

zcernigoj avatar zcernigoj commented on July 19, 2024

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

from sentinelplayground.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.