Skip to content

Commit

Permalink
use provider approach in auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Jan 23, 2025
1 parent 407269a commit 737dcd2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 326 deletions.
2 changes: 1 addition & 1 deletion asab/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ConfigParser(configparser.ConfigParser):
"auth": {
# URL location containing the authorization server's public JWK keys
# (often found at "/.well-known/jwks.json")
"public_keys_url": "",
"public_keys_url": "http://localhost:8900/.well-known/jwks.json",

# The "enabled" option switches authentication and authorization
# on, off or activates mock mode. The default value is True (on).
Expand Down
2 changes: 1 addition & 1 deletion asab/web/auth/providers/key_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, app, auth_provider, public_key: jwcrypto.jwk.JWK | jwcrypto.j
self.PublicKeySet = public_key
else:
raise ValueError("Invalid public_key type.")

self._set_ready(True)


Expand Down
Loading

0 comments on commit 737dcd2

Please sign in to comment.