waiting-for-dev / warden-jwt_auth

JWT token authentication with warden
MIT License
113 stars 56 forks source link

allow storing user repo / revocation strategy mappings as strings #11

Closed tycobbb closed 6 years ago

tycobbb commented 6 years ago

implements the same feature as #5. would like to ultimately resolve https://github.com/waiting-for-dev/devise-jwt/issues/22 as it is a pain-point for us during development right now.

i added the constant lookup at the configuration layer (per your comments) to both the user repositories and the revocation strategies. dry-configurable defines its methods on the config object rather than the user's class, so i monkey patched the config rather than overriding any class methods.

waiting-for-dev commented 6 years ago

Great work @wzrad ! :)

Merged and released in 0.2.1. I have updated devise-jwt to configure classes as string and to depend on this warden-jwt_auth version. The changes are in vesion 0.4.4.

Thanks!