Skip to content

authlete/hosted-oauth-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hosted-oauth-server

Multi-tenant host for the typescript-oauth-server core.

A "tenant" is one Authlete service (cluster url, service id, service access token) triple. The host is a stateless multiplexer: it provisions tenants, then serves each tenant's OAuth endpoints under /t/:service_id by mounting the core app with that tenant's credentials.

Endpoints

  • POST /tenants — register a tenant. Body: { service_id, cluster_url, service_access_token }. Create-only; 409 if taken.
  • DELETE /tenants/{service_id} — deregister a tenant. Send Authorization: Bearer <service_access_token>.

The /t/:service_id data plane is served entirely by the mounted core from typescript-oauth-server.

Develop

cp .env.example .env
npm install
npm run dev               # local server
npm test                  # end-to-end test

About

Multi-tenant host for the TypeScript OAuth server

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages