LDAP Auth
Hi everyone, i am new in the domain, and i need to auth my users thanks to an existing active directory with LDAP protocol but i don't know how i can do with refine, which auth service to use ... TY
import { Refine, AuthProvider } from "@refinedev/core";
export const authProvider: AuthProvider = {
login: async ({ email, password }) => {
const { status } = handleLogin(email, password);
if (status === 200) {
return { success: true, redirectTo: "/dashboard" };
} else {
return {
success: false,
error: { name: "Login Error", message: "Invalid credentials" },
};
}
},
check: async (params) => ({}),
logout: async (params) => ({}),
onError: async (params) => ({}),
register: async (params) => ({}),
forgotPassword: async (params) => ({}),
updatePassword: async (params) => ({}),
getPermissions: async (params) => ({}),
getIdentity: async (params) => ({}),
};
const App = () => {
return <Refine authProvider={authProvider}>...</Refine>;
};