Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hi @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

    @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

    (@tbenyon)

    Hey @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

    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

    (@tbenyon)

    Hey @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.