Skip to content

Commit a986eb0

Browse files
committed
fix: redirect_uris is mandatory if grant_types is not selected #807
1 parent 5ade415 commit a986eb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ function ClientWizardForm({
7676
setModal(!modal)
7777
}
7878
function validateFinish(){
79-
if(formRef.current.values.grantTypes.includes('authorization_code') || formRef.current.values.grantTypes.includes('implicit')){
79+
80+
if(formRef.current.values.grantTypes.includes('authorization_code') || formRef.current.values.grantTypes.includes('implicit') || formRef.current.values.grantTypes.length == 0){
8081
if(formRef && formRef.current && formRef.current.values.redirectUris.length > 0){
8182
toggle()
8283
}else{

0 commit comments

Comments
 (0)