Added JWT based Authorization for any operation

This commit is contained in:
Samuel Andert
2023-08-26 11:25:36 +02:00
parent 52a6fa3005
commit 2f40f3f5ac
7 changed files with 18 additions and 3 deletions

View File

@ -64,4 +64,7 @@ configureWunderGraphApplication({
],
},
},
authorization: {
roles: ['admin'],
},
});

View File

@ -5,7 +5,7 @@ export default configureWunderGraphOperations<OperationsConfiguration>({
operations: {
defaultConfig: {
authentication: {
required: false,
required: true,
},
},
queries: (config) => ({