chandantul has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Need help in implementing OIDC::Lite::Webserver
by bliako (Abbot) on May 25, 2021 at 07:02 UTC

    The parameter you provide to access_to_protected_resource() is a string, a scalar. But you insist on treating it like a reference to an object. And then wonder why it complains. If I wanted to understand why it complains, I would go to that line and find out why I try to access fields inside a reference ($your_app->store) when it is indeed a scalar.

    To me, your code looks like a very bad case of cargo-culting/copy-paste programming. For example, is there a reason why you use a do{}; block (which is not closed btw)? Additionally, you do not make sure that the exerpt you provided does indeed compile before you come here and ask for help. And it's also disrepecting to provide a zillion unneeded (for the exerpt you provided) module dependencies which must be installed in each of our computers in order to be able to have the privilege to run this abomination.

    bw, bliako

Re: Need help in implementing OIDC::Lite::Webserver
by Corion (Patriarch) on May 25, 2021 at 06:12 UTC

    You call your subroutine like this:

    access_to_protected_resource($apiurlapplog2);

    ... but in your subroutine you do:

    my $your_app = shift;

    Did you mean to pass in something like the application there instead?

    A reply falls below the community's threshold of quality. You may see it by logging in.