Hi
This library formats the aud claim as f"{endpoint.scheme}://{endpoint.host}". The competing library pywebpush does it slightly differently. They use urlparse and format as f"{url.scheme}://{url.netloc}" with netloc being equivalent to f"{url.host}:{url.port}".
The conclusion is that this library does not include the port in the aud claim while other implementations do. In a realistic use case, no port will be specified and both libraries will reach the same aud claim.
I don't think this is a problem as such but it is notable.
Br Eskild
Hi
This library formats the
audclaim asf"{endpoint.scheme}://{endpoint.host}". The competing librarypywebpushdoes it slightly differently. They useurlparseand format asf"{url.scheme}://{url.netloc}"withnetlocbeing equivalent tof"{url.host}:{url.port}".The conclusion is that this library does not include the port in the
audclaim while other implementations do. In a realistic use case, no port will be specified and both libraries will reach the sameaudclaim.I don't think this is a problem as such but it is notable.
Br Eskild