UNPKG

authweiler

Version:

A full-flegded 0Auth2.0 HTTP proxy server

25 lines 839 B
version: '1.0' server: default_port: 3000 token_endpoint: '/api/token' authorization_endpoint: '/api/auth' upstream: origin: 'http://localhost:3000' resources: User: path: '/User' scopes: - USER.Read # GET - USER.Write # POST, PUT, PATCH, DELETE - USER.ALL # GET, POST, PUT, PATCH, DELETE - USER.NONE(default) # GET, POST, PUT, PATCH, DELETE Account: path: '/Accounts' scopes: - ACCOUNTS.Read # GET - ACCOUNTS.Write # POST, PUT, PATCH, DELETE - ACCOUNTS.ALL # GET, POST, PUT, PATCH, DELETE - ACCOUNTS.NONE((default)) # GET, POST, PUT, PATCH, DELETE profiles: openid: auth