Search code examples
passport.jsadmin-on-rest

admin-on-rest with passport.js authentication?


I am wondering why I cannot find any AOR and passport auth code online? I found a ton of keystone and passport though... Is there a specific reason for that - the two should work well together, right?


Solution

  • You're right, there is no reason admin-on-rest would not work with passport -- however, there is a caveat:

    It seems you are searching for a "passport + AOR" tutorial or guide, but one of the selling points of admin-on-rest is that it is truly agnostic to any authentication implementation. Therefore, you would implement a passport strategy of your choosing (jwt, oauth, http basic) within admin-on-rest's authClient.js

    https://marmelab.com/admin-on-rest/Authentication.html