Hello ,
I have a backend rest api developed with spring boot ,is it possible to build an authentification api in strapi based on my rest api authentification spring boot without create accounts in strapi ?
Best regards
Hello ,
I have a backend rest api developed with spring boot ,is it possible to build an authentification api in strapi based on my rest api authentification spring boot without create accounts in strapi ?
Best regards
Yes, same way strapi has other auth providers like Google, twitter, you can seth up your own oauth flow with custom apis in Strapi. A simple implementation would be
return ctx.send({
jwt: getService('jwt').issue({ id: user.id }),
user: await sanitizeUser(user, ctx),
});
Hello ,thank you for your reply,can i generate JWT without user ? or can i use the user of my bakend spring rest api for genrerating the JWT?
Best