Skip to content

Commit

Permalink
The transform module was moved.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Nov 26, 2024
1 parent 60028ea commit 421e211
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/idpyoidc/client/claims/oauth2resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from idpyoidc.client import claims
from idpyoidc.message.oauth2 import OAuthProtectedResourceRequest
from idpyoidc.client.claims.transform import array_or_singleton
from idpyoidc.transform import array_or_singleton

class Claims(claims.Claims):
_supports = {
Expand Down
10 changes: 5 additions & 5 deletions tests/test_08_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from cryptojwt.utils import importer

from idpyoidc.client.claims.oidc import Claims as OIDC_Claims
from idpyoidc.client.claims.transform import create_registration_request
from idpyoidc.client.claims.transform import preferred_to_registered
from idpyoidc.client.claims.transform import supported_to_preferred
from idpyoidc.transform import create_registration_request
from idpyoidc.transform import preferred_to_registered
from idpyoidc.transform import supported_to_preferred
from idpyoidc.message.oidc import APPLICATION_TYPE_WEB
from idpyoidc.message.oidc import ProviderConfigurationResponse
from idpyoidc.message.oidc import RegistrationRequest
Expand Down Expand Up @@ -248,8 +248,6 @@ def test_provider_info(self):
assert set(claims.prefer.keys()) == {
"application_type",
"default_max_age",
"encrypt_request_object_supported",
"encrypt_userinfo_supported",
"id_token_encryption_alg_values_supported",
"id_token_encryption_enc_values_supported",
"id_token_signing_alg_values_supported",
Expand Down Expand Up @@ -362,6 +360,8 @@ def test_registration_response(self):
"client_name",
"contacts",
"default_max_age",
"encrypt_request_object_supported",
"encrypt_userinfo_supported",
"id_token_signed_response_alg",
"logo_uri",
"redirect_uris",
Expand Down
14 changes: 11 additions & 3 deletions tests/test_09_work_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from cryptojwt.utils import importer

from idpyoidc.client.claims.oidc import Claims
from idpyoidc.client.claims.transform import create_registration_request
from idpyoidc.client.claims.transform import preferred_to_registered
from idpyoidc.client.claims.transform import supported_to_preferred
from idpyoidc.transform import create_registration_request
from idpyoidc.transform import preferred_to_registered
from idpyoidc.transform import supported_to_preferred
from idpyoidc.message.oidc import APPLICATION_TYPE_WEB

KEYSPEC = [
Expand Down Expand Up @@ -179,6 +179,10 @@ def test_registration_response(self):

assert set(registration_request.keys()) == {
"application_type",
'encrypt_request_object_supported',
'encrypt_userinfo_supported',
'client_id',
'client_secret',
"client_name",
"contacts",
"default_max_age",
Expand Down Expand Up @@ -320,6 +324,10 @@ def test_registration_response_consistence(self):
"client_name",
"contacts",
"default_max_age",
'encrypt_request_object_supported',
'client_secret',
'client_id',
'encrypt_userinfo_supported',
"id_token_signed_response_alg",
"jwks",
"logo_uri",
Expand Down

0 comments on commit 421e211

Please sign in to comment.