-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings #723
Conversation
src/oic/utils/settings.py
Outdated
Control TLS server certificate validation. | ||
If set to True the certificate is validated against the global settings, | ||
if set to False, no validation is performed. | ||
If set to a filename his is used as a certificate bundle in openssl format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
his => this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general idea is sound. We have way to many constructor options all over the place.
Thanks for the feedback. Will work on this a little bit more to propagate the settings to all necessary classes. We can then expand their content. |
Thanks, will work on this more during the week to get the basic structure. |
Codecov Report
@@ Coverage Diff @@
## master #723 +/- ##
=========================================
- Coverage 63.88% 63.69% -0.2%
=========================================
Files 64 64
Lines 11692 11826 +134
Branches 2062 2091 +29
=========================================
+ Hits 7470 7533 +63
- Misses 3652 3697 +45
- Partials 570 596 +26
Continue to review full report at Codecov.
|
I think that the basic design of code is done. I will investigate the failure of integration tests, but the code/documentation is probably ready for review. I am not sure about the type checking in I would like to add some loading methods and other settings in separate issues. |
OK, test are fixed. I am going to ignore codacy errors as they are mostly false positives. |
No way to set them other than during init right now. Docs updated.
Updated docs, dealt with mypy
Here is an overview of what got changed by this pull request: Issues
======
- Added 2
Complexity increasing per file
==============================
- src/oic/oic/claims_provider.py 1
- src/oic/oauth2/consumer.py 1
- src/oic/utils/settings.py 5
Clones added
============
- src/oic/oauth2/base.py 2
- src/oic/oauth2/__init__.py 5
- src/oic/oic/__init__.py 4
- src/oic/oic/provider.py 2
- src/oic/oauth2/provider.py 2
See the complete overview on Codacy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
CHANGELOG.md
.Basic idea of settings. Mostly as a proof of concept and for design review.
This attempts to fix several issues regarding documentation (autodoc), too complex init methods and inconsistent settings..
The classes are not complete (they miss any sort of loading from files).
Also the conversion is not finished.