-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ARGOeu-Metrics/devel
Version 0.2.0
- Loading branch information
Showing
8 changed files
with
75 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,50 @@ | ||
# sitelib | ||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} | ||
%define dir /usr/libexec/argo/probes/oidc | ||
|
||
Name: argo-probe-oidc | ||
Summary: ARGO probes for handling of OIDC tokens. | ||
Version: 0.1.1 | ||
Release: 1%{?dist} | ||
License: ASL 2.0 | ||
Source0: %{name}-%{version}.tar.gz | ||
%define underscore() %(echo %1 | sed 's/-/_/g') | ||
|
||
Name: argo-probe-oidc | ||
Summary: ARGO probes for handling of OIDC tokens. | ||
Version: 0.2.0 | ||
Release: 1%{?dist} | ||
License: ASL 2.0 | ||
Group: Development/System | ||
Source0: %{name}-%{version}.tar.gz | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
Prefix: %{_prefix} | ||
BuildArch: noarch | ||
Requires: python-requests, python-argparse, python-jwt | ||
|
||
BuildRequires: python3-devel | ||
Requires: python36-requests | ||
Requires: python36-jwt | ||
|
||
%description | ||
This package includes probes for fetching OIDC access token and checking refresh token validity. | ||
|
||
%prep | ||
%setup -q | ||
|
||
|
||
%build | ||
%{__python} setup.py build | ||
%{py3_build} | ||
|
||
|
||
%install | ||
rm -rf %{buildroot} | ||
%{__python} setup.py install --skip-build --root %{buildroot} --record=INSTALLED_FILES | ||
install -d -m 755 %{buildroot}/%{dir} | ||
install -d -m 755 %{buildroot}/%{python_sitelib}/argo_probe_oidc | ||
%{py3_install "--record=INSTALLED_FILES" } | ||
|
||
|
||
%clean | ||
rm -rf %{buildroot} | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
|
||
%files -f INSTALLED_FILES | ||
%defattr(-,root,root,-) | ||
%{python_sitelib}/argo_probe_oidc | ||
%{python3_sitelib}/%{underscore %{name}}/ | ||
%{dir} | ||
|
||
|
||
%changelog | ||
* Thu Jun 29 2022 Katarina Zailac <kzailac@srce.hr> - 0.1.1-1%{?dist} | ||
* Thu Oct 5 2023 Katarina Zailac <kzailac@srce.hr> - 0.2.0-1%{?dist} | ||
- ARGO-4389 Set username as parameter to probe fetching OIDC token | ||
* Thu Jun 30 2022 Katarina Zailac <kzailac@srce.hr> - 0.1.1-1%{?dist} | ||
- ARGO-3872 Improve probe return message when refresh token has expired | ||
* Thu Jun 9 2022 Katarina Zailac <kzailac@gmail.com> - 0.1.0-1%{?dist} | ||
- Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/python3 | ||
from argo_probe_oidc import refresh_token_expiration | ||
|
||
refresh_token_expiration.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/python3 | ||
from argo_probe_oidc import fetch_token | ||
|
||
fetch_token.main() |