Custom EntryPoint with Authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    Custom EntryPoint with Authentication

    Is there any possibility that I could pass in an API user key as part of the query string for a custom EntryPoint and allow the request which follows to be authenticated?

    I am implementing an iCAL feed via a custom EntryPoint.

    So far, the user has to be logged into EspoCRM in order to generate this feed but it would be nice to pass the API user key as part of the query string so that authentication and restrictions can be applied regardless of whether a user is logged in.
  • eymen-elkum
    Active Community Member
    • Nov 2014
    • 472

    #2
    did you tried with this

    public static $authRequired = true;
    CEO of Eblasoft
    EspoCRM Expert since 2014
    Full Stack Web Developer since 2008
    Creator of Numerous Successful Extensions & Projects​

    Comment

    • blueprint
      Active Community Member
      • Jan 2019
      • 223

      #3
      eymen-elkum In which file? The custom EntryPoint PHP file? Would simply setting `$authRequired = false` be enough?

      Comment

      • blueprint
        Active Community Member
        • Jan 2019
        • 223

        #4
        eymen-elkum Sorry, ignore my question. Adding $authRequired = false; works beautifully!

        Thank you for the hint.

        Comment

        Working...