Skip to content

Commit

Permalink
Merge pull request #65 from italia/MdreW-patch-2
Browse files Browse the repository at this point in the history
Add more istruction to config the example RP
  • Loading branch information
Giuseppe De Marco authored Feb 24, 2023
2 parents 1846f4a + 13c1122 commit cbd1d08
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions example_sp/jwtconnect_python_oidcrp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,33 @@ You should see an output like this
````
then go to `https://127.0.0.1:8090`
## Configure webserver with satosa.json
Most important webserver configurations are:
* `webserver`: contain a collection of all webserver configuration
* `webserver.port`: webserver port, preconfigured 8090
* `webserver.domain`: webserver domain, preconfigured 'localhost'
* `webserver.server_cert`: webserver public certificate, preconfigured 'certs/cert.pem'
* `webserver.server_key`: webserver private key, preconfigured 'certs/key.pen'
* `webserver.debug`: debug webserver request, preconfigured true
## Configure rp with satosa.json
The RP is fully configurable with a simple json. Most important client config are:
* `port`: rp port, preconfigured 8090
* `domain`: rp domain, preconfigured 'localhost'
* `base_url`: rp base url, preconfigured 'https://example.org'
* `httpc_params.verify`: check certificate, preconfigured false
* `client.services`: contain a collection of configured OP, each key is an op with his configuration as value
## Configure an OP with satosa.json
Each key in `client.services` is a OP, in this example the OP is named `satosa`. most important OP configs are:
* `client.services.satosa.issuer`: OP issuer url, preconfigured 'https://localhost:10000'
* `client.services.satosa.client_id`: Unique identifier for RP, preconfigured 'jbxedfmfyc'
* `client.services.satosa.client_salt`: Salt for secret
* `client.services.satosa.client_secret`: Secret
* `client.services.satosa.application_type`: type of application, preconfigured 'web'
* `client.services.satosa.token_endpoint_auth_method`: authentication method, preconfigured 'client_secret_basic'
* `client.services.satosa.jwks_uri`: url of jwks config, preconfigured 'https://localhost:8090/static/jwks.json'
* `client.services.satosa.redirect_uris`: Array of redirect url, preconfigured ["https://localhost:8090/authz_cb/satosa"]
* `client.services.satosa.grant_types`: Array of permitted grant type, preconfigured ["authorization_code"]
* `client.services.satosa.allowed_scopes`: array of allowed scope, preconfigured ["openid", "profile", "email", "offline_access"]

0 comments on commit cbd1d08

Please sign in to comment.