We created a trivial Spring Boot app towards the spring season-boot-starter-online dependence for it demonstration
Because the consumer should posting subscription information towards the host, we should instead work with an application you to pays attention to own incoming HTTP desires. Because we must carry out JSON Web Tokens (JWT), I additional new coffee-jwt collection regarding Auth0 to your classpath.
Software machine points
The consumer must posting people trick towards subscription consult for the force provider. The force provider locations the general public input their database. When the back end produces a click message, it signs it on private trick and delivers the newest content towards signature into force services. Brand new push service validates the brand new signature on the stored societal secret, of course, if good, relays the content on the receiver.
The fresh new produced key couple should be practical toward Elliptic Contour Digital Signature Algorithm (ECDSA) along the P-256 contour. You will find info on related RFC 8292.
That it key couples should not transform. Technically, you can change it when there are zero energetic visitors subscriptions, you can also somehow make sure all website subscribers resubscribe. Sigue leyendo