79660505

Date: 2025-06-10 13:18:43
Score: 1
Natty:
Report link

I don't know if it's not worthy to just implement authentication and registration endpoints between vue rust and mysql

It'll be quicker - and I'd bet more secure - to use Cognito (or another IdP) than implementing authentication and registration yourself.

Is there a simpler approach using just cognito SDK and vue to get a token and then just validate it in the backend to allow to use the private endpoints?

I would recommend using OIDC rather than the Cognito SDK, unless you have a particular reason for using the SDK. There's wider library support for OIDC, it's pretty straightforward, and you're not tied to Cognito - you can swap it out for any OIDC IdP. At the end of the OIDC flow you get an ID token and an access token and you can validate and use these to authenticate and authorize users in your app.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: andycaine