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
- One that generates the signed URL to call your springboot authentication api from the client
- After your spring but has authenticated the signed url, it should push the user back to your client with an “access_token”
- Now process the access_token in the strapi backend (It communicates with your springboot api), once it confirms the access_token, you can then:
return ctx.send({
jwt: getService('jwt').issue({ id: user.id }),
user: await sanitizeUser(user, ctx),
});