Well, my saga is not finished yet.
After configuring successfully the configuration of OpenID, I need to include fields in JWT and/or HTTP Headers.
What I did so far, was to create an Attribute Source, chose several, including a "fixed" attribute named "environment" with the value "TEST".
Here is the configuration:
After this, I went to OpenID Provider configuration and added some attributes:

Hoping that now, these properties would show up in the JWT, which did not.
Now I have a some questions:
- What did I do wrong? why are the attributes not showing anywhere?
- How do I specify whether the attributes should show in JWT or in the HTTP headers?
- After adding in the OpenID Provider these attributes, what happened behind the scenes? I went to the Pre and Post scripts, and apparently nothing was changed there!
------------------------------
Joao Goncalves
Pyxis, Lda.
Sintra
+351 91 721 4994
------------------------------