Conversation
|
Seems to work. Just one problem: Where can we do the initialization of the oic.oic.Client? self.client.keyjar.load_keys(self.client.provider_info, self.client.issuer, replace=True)How to register a timer for this purpuse? Do you think |
|
I just fixed the merge conflicts :) |
1623d96 to
8c69332
Compare
|
@thegcat I just updated this branch. There were some bugs but now it should work just filling out the issuer field. |
|
This looks mostly fine to me, see the comments above. |
|
Ping |
| logger.error( | ||
| "Please specify jwks_uri in [oidc] section in pretix.cfg or ensure that the issuer supports jwks_uri discovery." | ||
| ) | ||
| self.client.handle_provider_config(op_info, op_info["issuer"]) |
There was a problem hiding this comment.
I missed this before sorry, but we do handle_provider_config twice now?
|
I have a few formatting gripes but I can take care of those myself. I had a closer look and I'm a bit unsure about the flow now though. Starting on new line 44:
Point 4 is probably a but. I would make Points 1 and 2 mutually exclusive though? Either autodiscover or use the static configuration? Going one step further I'd also build
What do you think? Do you want to tackle those points? |
add OIDC discovery functionality. This reduces configuration because all endpoints are discovered automatically based on the issuer
Some testing is still needed. I will convert draft to final later :)