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

Commit f6056af

Browse files
committed
Merge branch 'master' into develop
2 parents eea8d5a + c2e09be commit f6056af

File tree

12 files changed

+80
-267
lines changed

12 files changed

+80
-267
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ It also comes with the following `add_on` modules.
2929

3030
* Custom scopes, that extends [OIDC standard ScopeClaims](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims)
3131
* [Proof Key for Code Exchange by OAuth Public Clients (PKCE)](https://tools.ietf.org/html/rfc7636)
32+
* [OAuth2 PAR](https://datatracker.ietf.org/doc/html/rfc9126)
3233
* [OAuth2 RAR](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar)
3334
* [OAuth2 DPoP](https://tools.ietf.org/id/draft-fett-oauth-dpop-04.html)
3435
* [OAuth 2.0 Authorization Server Issuer Identification](https://datatracker.ietf.org/doc/draft-ietf-oauth-iss-auth-resp)
@@ -37,6 +38,9 @@ The entire project code is open sourced and therefore licensed under the [Apache
3738

3839
For any futher information please read the [Official Documentation](https://oidcop.readthedocs.io/en/latest/).
3940

41+
# Certifications
42+
[![OIDC Certification](https://openid.net/wordpress-content/uploads/2016/04/oid-l-certification-mark-l-rgb-150dpi-90mm-300x157.png)](https://www.certification.openid.net/plan-detail.html?public=true&plan=7p3iPQmff6Ohv)
43+
4044

4145
# Contribute
4246

docs/source/contents/usage.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ We can even test the single logout
5252
Refresh token
5353
-------------
5454

55-
Here an example about how to refresh a token.
56-
It is important to consider that only scope=offline_access will get a usable refresh token.
55+
To obtain a refresh token, you have to use `response_type=code`, add `offline_access` to `scope` and also use `prompt=consent`, otherwise there will be an error (based on [OpenID Connect specification](https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.11)).
56+
57+
To refresh a token:
5758

5859

5960
import requests
@@ -73,7 +74,7 @@ It is important to consider that only scope=offline_access will get a usable ref
7374
'https://127.0.0.1:8000/oidcop/token', verify=False, data=data, headers=headers
7475
)
7576

76-
oidc-op will return a json response like this::
77+
oidc-op will return a json response like this:
7778

7879
{
7980
'access_token': 'eyJhbGc ... CIOH_09tT_YVa_gyTqg',

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ It also comes with the following `add_on` modules.
2727

2828
* Custom scopes, that extends `[OIDC standard ScopeClaims] <https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims>`_
2929
* `Proof Key for Code Exchange by OAuth Public Clients (PKCE) <https://tools.ietf.org/html/rfc7636>`_
30+
* `OAuth2 PAR <https://datatracker.ietf.org/doc/html/rfc9126>`_
3031
* `OAuth2 RAR <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar>`_
3132
* `OAuth2 DPoP <https://tools.ietf.org/id/draft-fett-oauth-dpop-04.html>`_
3233

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[metadata]
99
name = "oidcop"
10-
version = "2.3.0"
10+
version = "2.3.4"
1111
author = "Roland Hedberg"
1212
author_email = "roland@catalogix.se"
1313
description = "Python implementation of an OAuth2 AS and an OIDC Provider"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run_tests(self):
7272
"Programming Language :: Python :: 3.9",
7373
"Topic :: Software Development :: Libraries :: Python Modules"],
7474
install_requires=[
75-
"oidcmsg==1.5.3",
75+
"oidcmsg==1.5.4",
7676
"pyyaml",
7777
"jinja2>=2.11.3",
7878
"responses>=0.13.0"

src/oidcop/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import secrets
22

3-
__version__ = "2.3.1"
3+
__version__ = "2.3.4"
44

55
DEF_SIGN_ALG = {
66
"id_token": "RS256",

0 commit comments

Comments
 (0)