1Mojolicious::Plugin::OAUustehr2:C:oMnotcrki(b3u)ted PerlMoDjoocluimceinotuast:i:oPnlugin::OAuth2::Mock(3)
2
3
4
6 Mojolicious::Plugin::OAuth2::Mock - Mock an Oauth2 and/or OpenID
7 Connect provider
8
10 use Mojolicious::Plugin::OAuth2::Mock;
11 use Mojolicious;
12
13 my $app = Mojolicious->new;
14 Mojolicious::Plugin::OAuth2::Mock->apply_to($app);
15
17 Mojolicious::Plugin::OAuth2::Mock is an EXPERIMENTAL module to make it
18 easier to test your Mojolicious::Plugin::OAuth2 based code.
19
21 apply_to
22 Mojolicious::Plugin::OAuth2::Mock->apply_to($app, \%provider_args);
23 $mock->apply_to($app, \%provider_args);
24
25 Used to add mocked routes to a Mojolicious application, based on all
26 the keys in %provider_args that end with "_url". Example:
27
28 * authorize_url => /mocked/oauth/authorize
29 * authorization_endpoint_url => /mocked/oauth2/authorize
30 * end_session_endpoint_url => /mocked/oauth2/logout
31 * issuer_url => /mocked/oauth2/v2.0
32 * jwks_url => /mocked/oauth2/keys
33 * token_url => /mocked/oauth/token
34 * token_endpoint_url => /mocked/oauth2/token
35
37 Mojolicious::Plugin::OAuth2.
38
39
40
41perl v5.36.0 2022-07-2M2ojolicious::Plugin::OAuth2::Mock(3)