| 1 | package WebService::Auth0::Management::Clients; | ||
| 2 | |||
| 3 | use Moo; | ||
| 4 | extends 'WebService::Auth0::Management::Base'; | ||
| 5 | with 'WebService::Auth0::Management::Role::Search', | ||
| 6 | 'WebService::Auth0::Management::Role::Create', | ||
| 7 | 'WebService::Auth0::Management::Role::Update', | ||
| 8 | 'WebService::Auth0::Management::Role::Delete', | ||
| 9 | 'WebService::Auth0::Management::Role::Get'; | ||
| 10 | |||
| 11 | sub path_suffix { 'clients' } | ||
| 12 | |||
| 13 | sub rotate_secret { | ||
| 14 | my ($self, $user_id) = @_; | ||
| 15 | return $self->POST($self->uri_for($user_id, 'rotate-secret')); | ||
| 16 | } | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | WebService::Auth0::Management::Clients - Users management API | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | =head1 METHODS | ||
| 27 | |||
| 28 | This class defines the following methods: | ||
| 29 | |||
| 30 | =head2 search (\%params) | ||
| 31 | |||
| 32 | L<https://auth0.com/docs/api/management/v2#!/Clients/get_clients> | ||
| 33 | |||
| 34 | Searches and returns all clients. Right now the query parameters are limited | ||
| 35 | (see linked docs). | ||
| 36 | |||
| 37 | =head2 create (\%params) | ||
| 38 | |||
| 39 | L<https://auth0.com/docs/api/management/v2#!/Clients/post_clients> | ||
| 40 | |||
| 41 | =head2 get ($id) | ||
| 42 | |||
| 43 | L<https://auth0.com/docs/api/management/v2#!/Clients/get_clients_by_id> | ||
| 44 | |||
| 45 | =head2 delete ($client_id) | ||
| 46 | |||
| 47 | L<https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id> | ||
| 48 | |||
| 49 | =head2 update ($client_id, \%params) | ||
| 50 | |||
| 51 | L<https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id> | ||
| 52 | |||
| 53 | =head2 rotate_secret ($client_id) | ||
| 54 | |||
| 55 | L<https://auth0.com/docs/api/management/v2#!/Clients/post_rotate_secret> | ||
| 56 | |||
| 57 | =head1 SEE ALSO | ||
| 58 | |||
| 59 | L<WebService::Auth0>, L<https://auth0.com>. | ||
| 60 | |||
| 61 | =head1 AUTHOR | ||
| 62 | |||
| 63 | See L<WebService::Auth0> | ||
| 64 | |||
| 65 | =head1 COPYRIGHT & LICENSE | ||
| 66 | |||
| 67 | See L<WebService::Auth0> | ||
| 68 | |||
| 69 | =cut | ||
| 70 | |||
| 71 | 1; |