• Resolved wprudi

    (@wprudi)


    hey,

    i had a weird bug, after activating the plugin the REST API ran into a timeout. But only if i tried to authenticate.
    You add in swaggerauth.php the filter 'determine_current_user' with the corresponding handler function, but you didn’t set the priority to 20. In the handler function you remove and add the filter before and after the auth process with the priority of 20.

    Longstory short:

    this: add_filter( 'determine_current_user', [ $basic, 'handler' ] );
    should be this: add_filter( 'determine_current_user', [ $basic, 'handler' ], 20 );

    btw: on php 7.2 i don’t have this problem.

    thank you!

    • This topic was modified 6 years, 6 months ago by wprudi.
    • This topic was modified 6 years, 6 months ago by wprudi.
    • This topic was modified 6 years, 6 months ago by wprudi.
Viewing 1 replies (of 1 total)
  • Plugin Author agussuroyo

    (@agussuroyo)

    Hi @wprudi

    Thanks for you feedback, I’ve change the priority as per your note, I hope it working well 🙂

    anyway, I change it to 14

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Auth Bug in PHP 7.3’ is closed to new replies.