Skip to content

Commit

Permalink
deleted not used field
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Oct 17, 2024
1 parent e1a450f commit 58d8049
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/blueapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class OauthConfig(BlueapiBaseModel):
issuer: str = ""
jwks_uri: str = ""
logout_url: str = ""
refresh_url: str = ""

def model_post_init(self, __context: Any) -> None:
response: requests.Response = requests.get(self.oidc_config_url)
Expand Down Expand Up @@ -122,7 +121,6 @@ def model_post_init(self, __context: Any) -> None:
self.issuer = issuer
self.jwks_uri = jwks_uri
self.logout_url = logout_url
self.refresh_url = token_url
else:
raise ValueError("OIDC config is missing required fields")

Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def test_oauth_config_model_post_init(mock_get):
assert oauth_config.issuer == mock_response["issuer"]
assert oauth_config.jwks_uri == mock_response["jwks_uri"]
assert oauth_config.logout_url == mock_response["end_session_endpoint"]
assert oauth_config.refresh_url == mock_response["token_endpoint"]


@mock.patch("requests.get")
Expand Down

0 comments on commit 58d8049

Please sign in to comment.