payprop / net-oauth2-authorizationserver

Module to implement core functions of an OAuth2 authorization server
7 stars 10 forks source link

oauth2_client.pl example does not work #23

Closed yoe closed 5 years ago

yoe commented 5 years ago

In one terminal, I run:

morbo -l "https://*:3000" oauth2_server_realistic.pl daemon

Then, while that is running, I do:

morbo -l "https://*:3001" oauth2_client.pl

which produces the following output:

Server available at https://127.0.0.1:3001
Can't load application from file "/home/wouter/net-oauth2-authorizationserver/examples/oauth2_client.pl": Can't use string ("1") as a HASH ref while "strict refs" in use at /usr/local/share/perl/5.28.1/Mojolicious/Plugin/OAuth2.pm line 45.
Compilation failed in require at (eval 94) line 1.
leejo commented 5 years ago

Hey, thanks for the report. This was an upstream change. I've tweaked the example to fix it but haven't done a release yet (will do so at a later stage)

leejo commented 5 years ago

Reopening because the client still contains a delay call, which was removed from Mojo in v7.78. See https://github.com/Humanstate/mojolicious-plugin-oauth2-server/issues/23 for context.

leejo commented 5 years ago

Fixed. v0.23 on its way to CPAN.