************** Authentication ************** .. sectionauthor:: Jody Hansen Tokens ====== Sanity checks to validate that your connection and token are working. Step 1: Navigate to the `Swagger Page `_. .. image:: /graphics/swagger_page.png :width: 600px 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. .. image:: /graphics/authorization.png :width: 600px 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. .. image:: /graphics/home_endpoint.png :width: 600px 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. .. image:: /graphics/validatekey_endpoint.png :width: 600px 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.