Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit beaba7c

Browse files
authored
Merge pull request #47 from IdentityPython/develop
Mostly changes to do with issues discovered during certification.
2 parents 7a6cb5a + ae0ff89 commit beaba7c

29 files changed

+198
-82
lines changed

.github/workflows/pypi.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Python distribution to PyPI
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
build-n-publish:
9+
name: Publish Python distribution to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Setup Python 3.8
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Install pypa/build
18+
run: >-
19+
python -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
31+
- name: Publish distribution to PyPI
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
user: __token__
35+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: oidcmsg
5+
6+
on:
7+
push:
8+
branches: [ master, develop ]
9+
pull_request:
10+
branches: [ master, develop ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version:
21+
- '3.7'
22+
- '3.8'
23+
- '3.9'
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
35+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36+
python setup.py install
37+
- name: Lint with flake8
38+
run: |
39+
# stop the build if there are Python syntax errors or undefined names
40+
flake8 src/oidcmsg --count --select=E9,F63,F7,F82 --show-source --statistics
41+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
42+
flake8 src/oidcmsg --max-line-length 120 --count --exit-zero --statistics
43+
44+
- name: Test with pytest
45+
run: |
46+
pytest --cov=oidcmsg tests/
47+
- name: Bandit Security Scan
48+
run: |
49+
bandit --skip B105,B106,B107 -r src/oidcmsg/
50+
#- name: Upload coverage to Codecov
51+
#uses: codecov/codecov-action@v1
52+
#with:
53+
#token: ${{ secrets.CODECOV_TOKEN }}
54+
#file: example/coverage.xml
55+
#flags: unittests
56+
#env_vars: OS,PYTHON
57+
#name: codecov-umbrella
58+
#fail_ci_if_error: true
59+
#path_to_write_report: ./codecov_report.txt

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CHANGELOG.md

100755100644
File mode changed.

LICENSE

100755100644
File mode changed.

Makefile

100755100644
File mode changed.

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# oidcmsg
2+
3+
![CI build](https://github.com/IdentityPython/oidcmsg/workflows/oidcmsg/badge.svg)
4+
![pypi](https://img.shields.io/pypi/v/oidcmsg.svg)
5+
[![Downloads](https://pepy.tech/badge/oidcmsg)](https://pepy.tech/project/oidcmsg)
6+
[![Downloads](https://pepy.tech/badge/oidcmsg/week)](https://pepy.tech/project/oidcmsg)
7+
![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
8+
29
Implementation of OIDC protocol messages.
310

411
oidcmsg is the 2nd layer in the
@@ -10,17 +17,17 @@ It also does verification of messages , that is :
1017

1118
+ verifies that all the required parameters are present and has a value
1219
+ verifies that the parameter values are of the right type
13-
+ verifies that if there is a list of permitted values, a parameter value is on
20+
+ verifies that if there is a list of permitted values, a parameter value is on
1421
that list.
1522

1623
and finally if the value is a signed and/or encrypted JWT this package
17-
will perform the necessary decryption and signature verification.
24+
will perform the necessary decryption and signature verification.
1825

1926

20-
Also implements a **KeyJar** which keeps keys belonging to
27+
Also implements a **KeyJar** which keeps keys belonging to
2128
different owners. One owner may have many keys.
2229
If some of these keys have a common origin, like described in a JWKS.
2330
Such a set will be kept in a **keyBundle**.
24-
Also implemented in this package.
25-
31+
Also implemented in this package.
32+
2633
Please read the [Official Documentation](https://oidcmsg.readthedocs.io/) for getting usage examples and further informations.

doc/Makefile

100755100644
File mode changed.

doc/conf.py

100755100644
File mode changed.

doc/index.rst

100755100644
File mode changed.

0 commit comments

Comments
 (0)