Skip to content

Commit

Permalink
fix(oauth-api): Use a default cloud value for outlook OAuth2 apps if …
Browse files Browse the repository at this point in the history
…AzureCloud is not specified
  • Loading branch information
andris9 committed Oct 15, 2024
1 parent e918807 commit 1affc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ const oauthCreateSchema = {
.empty('')
.when('provider', {
is: 'outlook',
then: Joi.required().valid('global', 'gcc-high', 'dod', 'china').default('global'),
then: Joi.valid('global', 'gcc-high', 'dod', 'china').default('global'),
otherwise: Joi.optional().valid(false, null)
})
.example('global')
Expand Down

0 comments on commit 1affc1d

Please sign in to comment.