Title: Use only API
Last modified: April 1, 2019

---

# Use only API

 *  Resolved [nnamellu](https://wordpress.org/support/users/nnamellu/)
 * (@nnamellu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/use-only-api/)
 * what if I can’t access db but i can use that login system API, do you have any
   suggestion?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/use-only-api/#post-11383003)
 * Hi [@nnamellu](https://wordpress.org/support/users/nnamellu/),
 * The plugin is currently built for database integration only.
 * Making this work completley depends on the API that you’re using. Is it a standard
   authentication system or a custom one?
 * I could add some hooks that would allow you to integrate but I would need to 
   know more about how your auth system works.
 * Tom
 *  [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/use-only-api/#post-11654500)
 * [@tbenyon](https://wordpress.org/support/users/tbenyon/) what about providing
   a filter that can intercept and handle the user lookup via an API call (or… anything
   really) instead of using a DB query? My database fields are encrypted so I can’t
   use a direct query, but I can easily expose an endpoint that returns the same
   info.
 * Thanks!
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/use-only-api/#post-11672055)
 * Hey [@doublesharp](https://wordpress.org/support/users/doublesharp/),
 * I could do. However this leads to the question of how much of the plugins functionality
   are we bypassing. Likely answer is most of it.
 * The idea would be that I’d write you a filter that would give you the username
   and password from the form and you would return user data in a valid format if
   they were authenticated and maybe false if not.
 * This begs the question, what is the plugin actually doing for you?
 * The rest of the logic is really simple so you may prefer to just include the 
   custom code yourself.
 * The plugins core logic of that part of it was all based on this blog post by 
   Ben Lobaugh:
    [https://ben.lobaugh.net/blog/7175/wordpress-replace-built-in-user-authentication](https://ben.lobaugh.net/blog/7175/wordpress-replace-built-in-user-authentication)
 * I’m certainly not saying I can’t do that for you – and I’m happy to look into
   it if you’re keen. But it won’t be saving you much.
 * Any thoughts?
 *  Plugin Author [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * (@tbenyon)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/use-only-api/#post-11729827)
 * Hey [@doublesharp](https://wordpress.org/support/users/doublesharp/),
 * I’m presuming you’ve decided to go a different route so I’m going to close this
   ticket.
 * If you require more help though please message back in here and I’ll open it 
   back up.
 * Thanks,
 * Tom 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Use only API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-login_fbebd6.svg)
 * [External Login](https://wordpress.org/plugins/external-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-login/)
 * [Active Topics](https://wordpress.org/support/plugin/external-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-login/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [tbenyon](https://wordpress.org/support/users/tbenyon/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/use-only-api/#post-11729827)
 * Status: resolved