Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.6 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.6 KB

e-Mobility Service Provider Autorization Server

This is the OAuth 2.0 Authorization Server implementation for the e-Mobility Service Provider (eMSP).

The software is written in PHP and implements a web service which utilizes the Authlete Authorization Server API as described here. It is developed with no focus on implementation security. Do not use it in production environments!

1. Documentation

1.1. REST API

The OpenAPI Specification is provided here.

1.2. Configuration

The eMSP Authorization Server can be configured using the following environment variables:

Authlete API Key API_KEY The API key used to access the Authlete Authorization Server API. Providing a valid API key is required.

Authlete API Secret API_SECRET The API secret used to access the Authlete Authorization Server API. Providing a valid API secret is required.

Client ID CLIENT_ID The OAuth 2.0 client ID of the legitimate OAuth 2.0 client. Providing a valid client ID is required.

Client ID CLIENT_SECRET The OAuth 2.0 client secret of the legitimate OAuth 2.0 client. Providing a valid client secret is required.

2. Development:

Run the service in an Nginx container combined with a PHP-FPM container. A Docker composition is provided here.

Docker compose commands:

# Run the container in the composition:
docker compose up as