github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/docs/authentication.md (about)

     1  # Authentication
     2  
     3  Iron Functions API supports two levels of Authentication in two seperate scopes,
     4  using [JWT](https://jwt.io/) tokens for authentication.
     5  
     6  * Service level authentication
     7  * Route level authentication.
     8  
     9  ## Service level authentication
    10  
    11  This authenticates all requests made to the server from any client. Service level authentication
    12  is set by the `JWT_AUTH_KEY` environment variable. If you set with variable
    13  within the server context, the server will look for a valid JWT token in every request. For use with the
    14  `fn` tool, you also need to set this environment variable within `fn` tool context while calling a command.
    15  
    16  ## Route level authentication
    17  
    18  Route level authentication is applied whenever a function call made to a specific route. You can check
    19  [Quick Example for JWT Authentication](../examples/jwt/README.md) for an example.