@@ -156,6 +156,12 @@ export const plugin: PluginDefinition = {
156156 optional : true ,
157157 dynamic : hiddenIfNot ( [ 'authorization_code' , 'implicit' ] ) ,
158158 } ,
159+ {
160+ type : 'text' ,
161+ name : 'audience' ,
162+ label : 'Audience' ,
163+ optional : true ,
164+ } ,
159165 {
160166 type : 'checkbox' ,
161167 name : 'usePkce' ,
@@ -258,6 +264,7 @@ export const plugin: PluginDefinition = {
258264 clientSecret : stringArg ( values , 'clientSecret' ) ,
259265 redirectUri : stringArgOrNull ( values , 'redirectUri' ) ,
260266 scope : stringArgOrNull ( values , 'scope' ) ,
267+ audience : stringArgOrNull ( values , 'audience' ) ,
261268 state : stringArgOrNull ( values , 'state' ) ,
262269 credentialsInBody,
263270 pkce : values . usePkce ? {
@@ -273,6 +280,7 @@ export const plugin: PluginDefinition = {
273280 redirectUri : stringArgOrNull ( values , 'redirectUri' ) ,
274281 responseType : stringArg ( values , 'responseType' ) ,
275282 scope : stringArgOrNull ( values , 'scope' ) ,
283+ audience : stringArgOrNull ( values , 'audience' ) ,
276284 state : stringArgOrNull ( values , 'state' ) ,
277285 } ) ;
278286 } else if ( grantType === 'client_credentials' ) {
@@ -282,6 +290,7 @@ export const plugin: PluginDefinition = {
282290 clientId : stringArg ( values , 'clientId' ) ,
283291 clientSecret : stringArg ( values , 'clientSecret' ) ,
284292 scope : stringArgOrNull ( values , 'scope' ) ,
293+ audience : stringArgOrNull ( values , 'audience' ) ,
285294 credentialsInBody,
286295 } ) ;
287296 } else if ( grantType === 'password' ) {
@@ -293,6 +302,7 @@ export const plugin: PluginDefinition = {
293302 username : stringArg ( values , 'username' ) ,
294303 password : stringArg ( values , 'password' ) ,
295304 scope : stringArgOrNull ( values , 'scope' ) ,
305+ audience : stringArgOrNull ( values , 'audience' ) ,
296306 credentialsInBody,
297307 } ) ;
298308 } else {
0 commit comments