devise-jwt icon indicating copy to clipboard operation
devise-jwt copied to clipboard

Allow JWT key configuration.

Open MichaelCordingley opened this issue 3 years ago • 3 comments

Introduces a new method to define what key should be included into the JWT as a subject. This enables using secondary keys to keep primary keys private to their services.

MichaelCordingley avatar Mar 24 '22 14:03 MichaelCordingley

This also fixes the case when primary_key is not :id.

MichaelCordingley avatar Mar 24 '22 14:03 MichaelCordingley

It makes sense, but it seems specs are failing.

waiting-for-dev avatar Mar 27 '22 06:03 waiting-for-dev

The failures are strange. The tests are unable to access the method, but this is a fairly standard and boring way of referencing a class method. It feels like I'm missing something obvious about the identity of self or how pieces mix together, but no permutation of including this gets the tests to pass. I'm at a loss and am open to suggestions.

MichaelCordingley avatar Mar 29 '22 14:03 MichaelCordingley

Closing it as it became stale. Feel free to re-take the work if needed. Thanks again for your collaboration.

waiting-for-dev avatar Sep 14 '22 12:09 waiting-for-dev