Access logs when accessing through an integration

Discussion in 'Integration' started by mhalper2000, Feb 15, 2020.

  1. mhalper2000

    mhalper2000 aMember Pro Customer

    Joined:
    Nov 16, 2012
    Messages:
    52
    We have different apps that allow a user to log into their account we are managing in aMember through an integration we have built.

    For example, we have built a Chrome Extension that has a log in screen and when the user logs in, the API checks the subscription status in aMember and then allows them to use the chrome extension if they are active.

    My question is that it does not appear if someone logs in through an integration or API, that this is logged on the access log in Utilities. Is that correct?

    Is the access log only users that log directly in through the aMember log in page?

    Is there a way that we can get logins through API on the access log?

    If we use a rule where a user can only log in from X number of IP addresses be applied to logins through an API or are those rules only applied to logins through aMember login page?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,191
    Hello,

    You need to use API method check-access/by-login-pass-ip
    and pass addition parameter - ip
    Code:
    http://example.com/amember/api/check-access/by-login-pass-ip?_key=APIKEY&login=john&pass=1234&ip=127.0.0.1
    In this case aMember record login attempts and apply account sharing prevention rules.

    Reference:
    https://www.amember.com/docs/REST#Check_Access

    Best Regards

Share This Page