File tree Expand file tree Collapse file tree
service/src/app-models/identity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ export const setupIdentity = async (injector: Injector) => {
123123 } ,
124124 } )
125125
126- getRepository ( injector ) . createDataSet ( User , 'username' , {
126+ const repo = getRepository ( injector )
127+
128+ repo . createDataSet ( User , 'username' , {
127129 authorizeAdd : withRole ( 'admin' ) ,
128130 authorizeGet : withRole ( 'admin' ) ,
129131 authorizeRemove : withRole ( 'admin' ) ,
@@ -137,6 +139,13 @@ export const setupIdentity = async (injector: Injector) => {
137139 authorizeUpdate : withRole ( 'admin' ) ,
138140 } )
139141
142+ repo . createDataSet ( PasswordCredential , 'userName' , {
143+ authorizeAdd : withRole ( 'admin' ) ,
144+ authorizeGet : withRole ( 'admin' ) ,
145+ authorizeUpdate : withRole ( 'admin' ) ,
146+ authorizeRemove : withRole ( 'admin' ) ,
147+ } )
148+
140149 usePasswordPolicy ( injector )
141150
142151 useHttpAuthentication ( injector , {
You can’t perform that action at this time.
0 commit comments