Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Need help in implementing OIDC::Lite::Webserver

by chandantul (Scribe)
on May 25, 2021 at 05:57 UTC ( [id://11133000]=perlquestion: print w/replies, xml ) Need Help??

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 (Monsignor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11133000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found