We have a SAAS company and have Identity provider(s) that we want to use for auto creation of employees.
As of today we have setup SSO via our IDP and it works perfectly fine.
The problem is it only creates users (website user), we want to create employees automatically when its creates in our IDP and the users signs in using their IDP credentials. Is it possible? is it a recommended way or there is another way of doing this?
Thanks for all the help in advance!
If you can create custom app
- fetch access_token / id_token from your IDP (this may happen in your SPA or UI)
- make call to frappe endpoint with your IDP provided token (GitHub - castlecraft/cfe: Castlecraft Extensions for Frappe Framework based Resource Servers needs to be installed and configured to accept given idp tokens)
- Configuration is documented here OAuth 2 and OIDC - Frappe Manual