Skip to main content
Go to Latest
class AuthletePropertyConfiguration
Re-export
import { AuthletePropertyConfiguration } from "https://deno.land/x/authlete_deno@v1.2.9/mod.ts";

Implementation of AuthleteConfiguration based on a properties file. Use this class for creating configuration based on a property file named authlete.json.

Static Methods

Create a configuration from a property file named authlete.json. The property file must be located directly under the execution directory. Here is an example of authlete.json.

{
  "baseUrl": "https://api.authlete.com/api",
  "serviceOwnerApiKey": "<YOUR_SERVICE_OWNER_API_KEY>",
  "serviceOwnerApiSecret": "<YOUR_SERVICE_OWNER_API_SECRET>",
  "serviceApiKey": "<YOUR_SERVICE_API_KEY>",
  "serviceApiSecret": "<YOUR_SERVICE_API_SECRET>",
  "timeout": 10000
}

If failed to read the property file or failed to parse it as JSON, error is thrown.