diff --git a/resources/lang/en-US/admin/settings/general.php b/resources/lang/en-US/admin/settings/general.php index 01adf36ebf..727c35a6e9 100644 --- a/resources/lang/en-US/admin/settings/general.php +++ b/resources/lang/en-US/admin/settings/general.php @@ -287,8 +287,18 @@ return [ 'zerofill_count' => 'Length of asset tags, including zerofill', 'username_format_help' => 'This setting will only be used by the import process if a username is not provided and we have to generate a username for you.', 'oauth_title' => 'OAuth API Settings', + 'oauth_clients' => 'OAuth Clients', 'oauth' => 'OAuth', 'oauth_help' => 'Oauth Endpoint Settings', + 'oauth_no_clients' => 'You have not created any OAuth clients yet.', + 'oauth_secret' => 'Secret', + 'oauth_authorized_apps' => 'Authorized Applications', + 'oauth_redirect_url' => 'Redirect URL', + 'oauth_name_help' => ' Something your users will recognize and trust.', + 'oauth_scopes' => 'Scopes', + 'oauth_callback_url' => 'Your application authorization callback URL.', + 'create_client' => 'Create Client', + 'no_scopes' => 'No scopes', 'asset_tag_title' => 'Update Asset Tag Settings', 'barcode_title' => 'Update Barcode Settings', 'barcodes' => 'Barcodes', diff --git a/resources/views/livewire/oauth-clients.blade.php b/resources/views/livewire/oauth-clients.blade.php index cee841501c..e05da87a6f 100644 --- a/resources/views/livewire/oauth-clients.blade.php +++ b/resources/views/livewire/oauth-clients.blade.php @@ -1,79 +1,84 @@
Whoops! Something went wrong!
+{{ trans('admin/users/message.insufficient_permissions') }}
{{ $authorizationError }}
+
- You have not created any OAuth clients. -
- @endif ++ {{ trans('admin/settings/general.oauth_no_clients') }} +
+ @endif - @if($clients->count() > 0) -Client ID | -Name | -Secret | -Edit | -Delete | +{{ trans('general.id') }} | +{{ trans('general.name') }} | +{{ trans('admin/settings/general.oauth_redirect_url') }} | +{{ trans('admin/settings/general.oauth_secret') }} | +{{ trans('general.actions') }} |
---|---|---|---|---|---|---|---|---|---|
+ | {{ $client->id }} | -+ | {{ $client->name }} | + ++ {{ $client->redirect }} + | + -+ |
{{ $client->secret }}
|
-
- - - Edit - - | + ++ + + {{ trans('general.update') }} + - - | - + + + {{ trans('general.delete') }} + |
Name | -Scopes | -Delete | +{{ trans('general.name') }} | +{{ trans('admin/settings/general.oauth_scopes') }} | +|
---|---|---|---|---|---|
+ | {{ $token->client->name }} | -+ | @if(!$token->scopes) - No Scopes + + {{ trans('admin/settings/general.no_scopes') }} + @endif | -- + - + + + {{ trans('general.delete') }} + |