I have an external system setup with Web pushes in an Python environment with existing keys and endpoints.
Started looking at the possibility to let an external application using existing keys and endpoints to start sending web push notifications and found this lib.
During the process of trying to send notifications with existing setup I entered the problem that the version of JOSE only supported a limited set of sources for JWK construction and that this lib used from_key function to set up an private key.
I now wonder if it is a good idea to let a function trying to identify what kind encoding the key is made with and then selecting the proper JWK function?
Let me know what you think @danhper about this, if you think it could be a good idea, then I'll try to make a pull request with the suggested feature
I have an external system setup with Web pushes in an Python environment with existing keys and endpoints.
Started looking at the possibility to let an external application using existing keys and endpoints to start sending web push notifications and found this lib.
During the process of trying to send notifications with existing setup I entered the problem that the version of JOSE only supported a limited set of sources for JWK construction and that this lib used from_key function to set up an private key.
I now wonder if it is a good idea to let a function trying to identify what kind encoding the key is made with and then selecting the proper JWK function?
Let me know what you think @danhper about this, if you think it could be a good idea, then I'll try to make a pull request with the suggested feature