class AuthletePropertyConfiguration
implements AuthleteConfiguration
Re-export
import { AuthletePropertyConfiguration } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";
Implementation of AuthleteConfiguration
based on a properties file.
This is a utility class to load a configuration file that includes
properties related to Authlete.
Static Methods
create()
Create a configuration from the 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>"
}
If failed to read the property file or failed to parse it as JSON, error is thrown.