Commit graph

72 commits

Author SHA1 Message Date
Tomas Kopecek
f1b6cdc401 doc: api docs
Fixes: https://pagure.io/koji/issue/2110
2020-10-23 09:06:23 +02:00
Tomas Kopecek
b4cfca052b hub: more verbose assertPerm error
Fixes: https://pagure.io/koji/issue/2429
2020-08-31 08:48:57 +02:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
6dd77e0fa4 flake8: apply E502 rule 2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4 flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b flake8: apply E2 rules except E266 2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af flake8: apply E1 rules 2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Yu Ming Zhu
558f7be2d2 fix newline betwwen koji and relative imports 2019-12-12 11:00:58 +00:00
Yu Ming Zhu
4d29a87e9b sort imports in koji 2019-12-12 11:00:57 +00:00
Ken Dreyer
68bcc06427 rm old test code
Some files in the tree had bits of code that you could run if you
executed the files directly as scripts. Now that we have unit tests and
the "fakehub" tool, we do not need this code.
2019-11-18 10:45:57 +01:00
Yu Ming Zhu
3e124f685a fix editUser api for multiple kerberos support 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
ea52707f1d fix typos in auth.py 2019-10-15 09:16:43 +02:00
Yuming Zhu
45ce49a643 fix typo in createUser 2019-10-11 14:21:46 +08:00
Yuming Zhu
7b60e0e7eb backwards compatibility for ProxyDNs change 2019-10-10 13:04:06 +00:00
Yu Ming Zhu
3b4673879b fix typo 2019-10-10 13:02:55 +00:00
Yuming Zhu
2408e86ff6 in proxyuser case, do use username rather than principal 2019-10-10 13:02:55 +00:00
Yuming Zhu
d662fb837d keep on using REMOTE_USER
and handover realm translation to auth_to_local rules in /etc/krb5.conf
2019-10-10 13:02:55 +00:00
Yu Ming Zhu
4a3dc40147 use GSS_NAME instead of REMOTE_USER for GSSAPI auth
jira: https://projects.engineering.redhat.com/browse/BST-475
2019-10-10 13:01:24 +00:00
Yu Ming Zhu
30ff46f1b0 fix error msg and regex sytax 2019-10-10 16:37:57 +02:00
Yu Ming Zhu
ce8ff9068c fix table name typo 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
ab37e28d4d hub: add AllowedKrbRealms option and (add|remove)UserKrbPrincipal API 2019-10-10 16:37:56 +02:00
Yu Ming Zhu
aaeb41e57b change users and krb_principal operations 2019-10-10 16:37:56 +02:00
Mike McLean
acf5c73ee2 use base64.b64decode 2019-03-04 09:28:39 -05:00
Yu Ming Zhu
7ab1e2901d urllib fix for python3 2019-01-28 08:45:18 -05:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
2eaac43473 replace long with int
long conversion here results in same python type, in py3 it is no more
supported.
2018-05-03 12:26:21 -04:00
Mike McLean
daf0764ad3 fix host id lookup for anonymous sessions 2018-04-04 09:43:47 -04:00
Yuming Zhu
7f302491f9 use urlparse.parse_qs instead of deprecated cgi.parse_qs 2017-10-11 14:52:48 +00:00
Tomas Kopecek
c86f41ebcf some tests for koji.auth 2017-10-11 12:14:15 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Tomas Kopecek
6d5dc301d3 don't use krbV under python3 2017-06-01 09:39:23 +02:00
Tomas Kopecek
68bf19c739 python-modernize -f libmodernize.fixes.fix_dict_six 2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f python-modernize -f lib2to3.fixes.fix_except 2017-06-01 09:39:22 +02:00
Tomas Kopecek
73356b50e5 fix relative imports 2017-06-01 09:39:21 +02:00
Tomas Kopecek
0eaf3349c4 python-modernize -f libmodernize.fixes.fix_zip 2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be python-modernize -f libmodernize.fixes.fix_xrange_six 2017-06-01 09:39:21 +02:00
Patrick Uiterwijk
7ec0e2c6b0 Make sslLogin use getUserId
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-05-04 10:02:58 -04:00
Patrick Uiterwijk
5a23afaeeb Make proxyuser consistent between ssl and krb
Currently, krb would expect a krb principal where ssl expects a username.
This makes krb use the username, but also accept the krb_principal for
backwards compatibility.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-05-04 10:02:58 -04:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Mike McLean
1088e5f4fb new hub CheckClientIP option 2017-02-14 11:27:55 -05:00
Patrick Uiterwijk
480cdfb540 Implement GSSAPI login
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 16:45:31 -05:00
Mohan Boddu
dd82e9cea2 Remove all bad-whitespaces
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike Bonnet
5569c058c1 print the correct authentication method in "koji moshimoshi" 2015-12-01 18:51:53 -05:00