Closed melanger closed 3 years ago
In many tests and examples, including the main example, the configuration option for claims is written as add_claim_by_scope (singular claim), but in the source code, it is add_claims_by_scope (plular claims):
add_claim_by_scope
claim
add_claims_by_scope
claims
https://github.com/IdentityPython/oidc-op/blob/a87177e7a5d0b40dcff11ed75b39a72bd2d3f015/src/oidcop/session/claims.py#L28
https://github.com/IdentityPython/oidc-op/blob/a87177e7a5d0b40dcff11ed75b39a72bd2d3f015/src/oidcop/oidc/userinfo.py#L38
I guess the documentation and tests should be fixed to add_claims_by_scope.
Think you're right @nsklikas can you confirm this?
@melanger feel free to put your contribution with a Pull Request, thank you
In many tests and examples, including the main example, the configuration option for claims is written as
add_claim_by_scope
(singularclaim
), but in the source code, it isadd_claims_by_scope
(plularclaims
):https://github.com/IdentityPython/oidc-op/blob/a87177e7a5d0b40dcff11ed75b39a72bd2d3f015/src/oidcop/session/claims.py#L28
https://github.com/IdentityPython/oidc-op/blob/a87177e7a5d0b40dcff11ed75b39a72bd2d3f015/src/oidcop/oidc/userinfo.py#L38
I guess the documentation and tests should be fixed to
add_claims_by_scope
.