An Authorisation Reverse Proxy using OpenID Connect
A simple reverse proxy that adds OpenID Connect Authentication and lets you
write access rules for services you want to protect.
You will need:
<domain>
<fullchain>
, <privkey>
)<python3>
<python3> setup.py install
oidcproxy
command.oidcproxy --help
.oidcproxy --print-sample-config
oidcproxy --print-sample-config
Fill in the right values for <keyfile>
, <certfile>
, <domainname>
, <redirect>
urls (path the openid connect providers will redirect the user to, with a leading
slash) and the contacts field (at least on valid mail adress).
You need the configuration url (should end with .well-known/openid/configuration, cut this part of, it is added automatically).
You also need either:
Choose a key under which oidcproxy will internally use for the provider.
Add both parameters to the config.yml underopenid_providers -> <key> -> configuration_url
openid_providers -> <key> -> configuration_token
If you already registered your client and have a registration token add
the configuration url, the registration url and the registration token
under to the config.yml file underopenid_providers -> <key>
using the configuration_url
, registration_url
and registration_token
.
Add the configuration url to the config.yml.
Call oidcproxy --add-provider <key> --client-id <client_id> --client-secret <client-secret>
You need the origin url, the proxy url and the key of an access control policy
set (the key of an ac entity in the json file with type policy set).
Choose a key which oidcproxy will internally use for the service.
Add the origin url and the proxy url (the path under which the service will be
available with a leading slash) using the origin_URL
and proxy_url
keys
under services -> <service key> ->
to the config.yml
Now you should be able to access the service.