apokalipto / devise_saml_authenticatable

Devise SAML 2.0 authentication strategy
MIT License
294 stars 153 forks source link

Allow proc as value for saml_create_user and saml_update_user #216

Closed linhmtran168 closed 2 years ago

linhmtran168 commented 2 years ago

Solve https://github.com/apokalipto/devise_saml_authenticatable/issues/203.

Sorry for the late PRs. I haven't had any free time lately, and the priority for this feature in our system is not that high. This PR let saml_create_user and saml_update_user accept a Proc as value. The model class, saml response and auth_value are passed to the proc so that finer-grained decisions can be made.