oauth provider email_claim required

This commit is contained in:
xiaomlove
2025-05-02 14:22:35 +07:00
parent 7b4a0d2fc5
commit cd6ac587c2
6 changed files with 20 additions and 13 deletions

View File

@@ -41,8 +41,8 @@ class ClientResource extends Resource
{
return $form
->schema([
Forms\Components\TextInput::make('name')->label(__('label.name')),
Forms\Components\TextInput::make('redirect')->label(__('oauth.redirect')),
Forms\Components\TextInput::make('name')->label(__('label.name'))->required(),
Forms\Components\TextInput::make('redirect')->label(__('oauth.redirect'))->required(),
Forms\Components\Radio::make('skips_authorization')
->options(self::getYesNoOptions())
->inline()

View File

@@ -68,12 +68,14 @@ class ProviderResource extends Resource
->label(__('oauth.id_claim'))
->required()
,
Forms\Components\TextInput::make('email_claim')
->label(__('oauth.email_claim'))
->required()
,
Forms\Components\TextInput::make('username_claim')
->label(__('oauth.username_claim'))
,
Forms\Components\TextInput::make('email_claim')
->label(__('oauth.email_claim'))
,
Forms\Components\TextInput::make('level_claim')
->label(__('oauth.level_claim'))
,