feat: introducing server configurations in admin dashboard (#3628)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a8cc569786
commit
f3edd001d7
@@ -227,4 +227,9 @@ export const auth = {
|
||||
window.location.href = import.meta.env.VITE_ADMIN_URL;
|
||||
}
|
||||
},
|
||||
|
||||
getAllowedAuthProviders: async () => {
|
||||
const res = await authQuery.getProviders();
|
||||
return res.data?.providers;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation EnableAndDisableSSO($providerInfo: [EnableAndDisableSSOArgs!]!) {
|
||||
enableAndDisableSSO(providerInfo: $providerInfo)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation ResetInfraConfigs {
|
||||
resetInfraConfigs
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
mutation UpdateInfraConfigs($infraConfigs: [InfraConfigArgs!]!) {
|
||||
updateInfraConfigs(infraConfigs: $infraConfigs) {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
query AllowedAuthProviders {
|
||||
allowedAuthProviders
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
query InfraConfigs($configNames: [InfraConfigEnum!]!) {
|
||||
infraConfigs(configNames: $configNames) {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,7 @@ export default {
|
||||
}),
|
||||
refreshToken: () => restApi.get('/auth/refresh'),
|
||||
elevateUser: () => restApi.get('/auth/verify/admin'),
|
||||
getProviders: () => restApi.get('/auth/providers'),
|
||||
sendMagicLink: (email: string) =>
|
||||
restApi.post('/auth/signin?origin=admin', {
|
||||
email,
|
||||
|
||||
Reference in New Issue
Block a user