Authentication

Tokens

Sanity checks to validate that your connection and token are working.

Step 1: Navigate to the Swagger Page.

_images/swagger_page.png

Step 2: Click on the authorize button at top-right of the page to open a pop-up. Add your token exactly as the following example,

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTYyMTI1NjMsIm

Press authorize. This will authorize all endpoints during your session and you will need to go through this step each time you re-visit the page. Please note that this form will accept bad tokens and you will need to confirm that you entered the correct format by testing it with the endpoint in step four.

_images/authorization.png

Step 3: Locate the home section. Click on the home endpoint and the try it out button in the upper right hand corner. Press the execute button. This is the most basic endpoint that does not require authentication. It tests if the flask application is working.

_images/home_endpoint.png

Step 4: Click on the home/validate_token endpoint and the try it out button in the upper right hand corner. This tests that you have a working token.

_images/validatekey_endpoint.png

Security

Climate-engine API is following OAuth standards for authorization. The application uses encrypted JSON Web Tokens (JWT) passed as a authorization header to authorize and authenticate the user.