Commit Graph

741 Commits

Author SHA1 Message Date
567430790c SAML certificate fix and enhancement
Problems resolved:

- Method create_self_signed_cert() was invoked nowhere. This puts parameter "SAML_SIGN_REQUEST" description in configs/development.py as incorrect
- Method create_self_signed_cert() was returning error while trying to write out certificate and private key. File handler was opened for writing out TEXT instead of BINARY data

Enhancements:

- Two new parameters are introduced SAML_CERT_FILE and SAML_KEY_FILE. User can now explicitly define own certificate and key file anywhere on file-system.
- If parameters mentioned in previous bullet aren't explicitly defined, in PowerDNS-Admin root directory self-signed certificate will be created.
- Certificates will be used or generated in any case, because in saml.py there are explicit parameters defined which require certificate/key in order to work normally. If they aren't, exception will be thrown. Examples of parameters defined in saml.py requiring certificate: wantAssertionsEncrypted, signMetadata, wantAssertionsSigned.
2019-12-19 00:40:25 +01:00
37f24f9fde Correction of redirect URL after successful SAML login
From my perspective, if agreed, this change can be merged, because the basic SAM auth. functionality is now present
and was tested with "samlidp.io" iDP.

However, there are further improvements which I would like to integrate, but as a separate features in separate pull requests
2019-12-15 01:15:30 +01:00
894756ad96 Invocation of separate threa in get_idp_data() problem resolved 2019-12-14 21:45:51 +01:00
cd3535dcd2 - Variable references inside SAML class were fixed
- Function signatures inside SAML class were fixed
    - Redirect URL for /saml/login path was modified (saml_authorized -> index.saml_authorized)

    Current status is that SAML metadata can be generated under /saml/metadata and communication to SAML iDP is working

    Problems remaining:
        - SAML Response doesn't contain any attributes (There is no AttributeStatement on the Response). It can be that problem is on iDP side
        - Background thread in retrieve_idp_data() cannot be spawned, this part is currently commented out, old code needs to be revisited
2019-12-14 18:59:59 +01:00
ad6b04bd78 LGTM fixes 2019-12-14 08:31:23 +07:00
c0594b2c0b Fix SAML 2019-12-13 21:55:11 +07:00
d90a20f8da Fix #602 domain table with long records 2019-12-13 21:22:58 +07:00
65d4acc6c5 Merge remote-tracking branch 'paepke/history-rrsets' 2019-12-11 21:14:44 +07:00
81869f4cd8 add history entries for rrsets delivered via zone api which is forwarded to pdns 2019-12-11 14:04:18 +01:00
242e31a490 Merge pull request #599 from ngoduykhanh/global_search
Add PDNS global search feature
2019-12-11 16:56:06 +07:00
1d973d1614 Allow update zone kind the domain setting page 2019-12-11 16:02:36 +07:00
798b7abb5b Show actual result on applyChanges(). Remove generated assets files 2019-12-11 13:45:27 +07:00
c62f9f6936 Formatting 2019-12-11 10:32:02 +07:00
2cc73abbe5 Add PDNS global search feature
Remove POST method in global search route

Edit form action
2019-12-11 10:26:17 +07:00
a65b940103 Remove POST method in global search route 2019-12-11 10:02:04 +07:00
de69eaf825 Add PDNS global search feature 2019-12-11 09:55:18 +07:00
67e6df6880 Bug fixes. Adjust logger 2019-12-10 17:08:43 +07:00
9904505867 Bug fixes 2019-12-10 10:36:51 +07:00
7e3a722215 Merge pull request #598 from ngoduykhanh/comment_feature
Add record comment
2019-12-09 22:42:01 +07:00
bca3c45e37 Add record comment 2019-12-09 17:50:48 +07:00
c1fae6f3dd Update README and LGTM fixes 2019-12-08 18:23:36 +07:00
354383f0ec Fix missing import 2019-12-08 08:57:24 +07:00
19401699ca Fix #596 missing import 2019-12-07 20:46:14 +07:00
bbede0f7bd Merge pull request #595 from ngoduykhanh/lgtm-fixes
LGTM fixes. Remove unused import and variables
2019-12-07 20:39:54 +07:00
6af94df00a LGTM fixes. Remove unused import and variables 2019-12-07 20:20:40 +07:00
53a7545ccc Upgrade mysqlclient package to work with MySQL 8.x #571 2019-12-07 18:10:06 +07:00
f8aaf88fc0 Fix #592 - Adjustment in Dockerfile to upgrade pip package 2019-12-07 14:45:41 +07:00
80b6ca19ac Resolve the conflicts and add adjustment to #591 2019-12-06 14:27:35 +07:00
0d2eeecce6 Merge pull request #586 from ngoduykhanh/code_refactor
Refactoring the code
2019-12-06 11:18:17 +07:00
0234f21e1d Update update_zones.py bg script 2019-12-06 10:59:19 +07:00
8de6df4d3b Fix the tests
Fix the tests

Fix the tests
2019-12-06 10:59:19 +07:00
aef9842d30 Add micrsoft logo for social login 2019-12-05 14:26:01 +13:00
10ff312d95 Azure OAuth documentation and html templates 2019-12-05 13:52:30 +13:00
1662944867 Add Azure as an explicit OAuth provider 2019-12-05 13:21:50 +13:00
840e2a4750 Update docker stuff and bug fixes 2019-12-04 11:50:46 +07:00
8ea00b9484 Refactoring the code
- Use Flask blueprint
- Split model and views into smaller parts
- Bug fixes
- API adjustment
2019-12-02 10:32:03 +07:00
0b2eb0fbf8 Merge branch 'split-up-update-method' 2019-09-25 11:47:45 +07:00
d31f95ca21 Merge remote-tracking branch 'in0th3p/split-up-update-method' 2019-09-25 11:47:34 +07:00
ad86f8ea2a Remove blank lines and spaces 2019-09-25 11:45:03 +07:00
89ac98acfb Merge pull request #547 from Jamesits/master
fix #542
2019-09-16 11:49:04 +07:00
7af76297de Merge pull request #557 from tingvold/natural-sort
Add natural sort library
2019-09-16 11:47:34 +07:00
16669e6bbf Add natural sort library, so that natural sort works again. 2019-09-15 15:29:22 +02:00
0318000429 address https://github.com/ngoduykhanh/PowerDNS-Admin/issues/542 2019-07-24 15:40:11 +08:00
a21d4d9cbd split up update function add/delete/update 2019-07-23 13:36:05 +02:00
dfce7eb537 Upgrade SQLAlchemy version to pass the security check. Set version for other libs in requirements.txt 2019-07-15 09:50:23 +07:00
26db6b8c4b Merge pull request #531 from pfak/master
Standard compliant HTTP Response codes
2019-07-15 09:49:00 +07:00
6e51ad866a Standard compliant HTTP Response codes 2019-07-14 19:11:00 -07:00
798362c3c5 Merge remote-tracking branch 'Jamesits/master' 2019-07-15 09:07:51 +07:00
71a87dc38f pkg-config is not used 2019-07-13 09:01:41 +08:00
7878ecda2a allow setting gunicorn default args via environment variables 2019-07-12 22:20:59 +08:00