Could you please tell me how to implement validation for signature of opaque access token?
Standard web application. Frontend+Backend(Golang).
Regular Web Application in auth0 dashboard. Using authorization code flow.
I am implementing this scenario:
-
The user registered through the login page (passed the authorization code flow). The resulting opaque access token backend save in a cookie. And also i save refresh token for this access token in database.
Next, all API requests from the frontend are sent with the received opaque access token in cookie. -
For each API request from the frontend like this, backend do this: validate the access token(signature) from the cookie → see if it is expired → if it is expired, then refresh it using refresh token. And set new access token in cookie. P.S. Refresh token rotation is on of course.