Hsiaoming Yang

Results 207 comments of Hsiaoming Yang

@ashcherbakov thanks. You can put them in the `jose/drafts` folder.

@ashcherbakov Oh, sorry to miss that. I'll focus on release v1.0.0 in next month. For now, you can use the b1release which includes your updates on JOSE. https://pypi.org/project/Authlib/1.0.0b1/

@saeedesmaili `id_token` is just JWT, you can use `authlib.jose` to validate it. Check our source code to learn how to use it: https://github.com/lepture/authlib/blob/169c7dcfc47478c8d55553cc95fb0f5578162b77/authlib/integrations/base_client/sync_openid.py#L32-L77

@sjv0 Use `JsonWebKey.import_key` instead. https://docs.authlib.org/en/v0.15/jose/jwk.html

@sjv0 try ``` >>> from pathlib import Path >>> from authlib.jose import JsonWebKey >>> key_data = Path('my_key.pub').read_text(encoding='utf-8') >>> key = JsonWebKey.import_key(key_data, {'kty': 'RSA', 'kid': 'my_id', 'use': 'sig', 'alg': 'RS256'}) >>>...

@sjv0 oh, actually, `is_private` is for v1.0, which is not released yet. :( I'll close this issue, since I won't fix it in v0.15.x.

It is impossible to implement FastAPI OAuth providers for now. Because FastAPI is async, Authlib is not ready for async providers. This should be done in v2.0.

@gmachado-nextreason Yes, you are correct. We can support sync mode at first. But I won't add it in v0.15, how about adding it to v1.0. There are still works to...