saml icon indicating copy to clipboard operation
saml copied to clipboard

Add an AssertionHandler to the middleware

Open kevcoxe opened this issue 2 years ago • 0 comments

I have been using this repo in addition to itzg/saml-auth-proxy but I wanted to add some extra functionality where on login take the assertion from the SAML provider and add RBAC to Grafana.

To do this I added a AssertionHandler to samlsp middleware. Inside of the ServeACS function before creating the session I call the AssertionHandler.HandleAssertion function and give it the assertion.

This way you can create your own AssertionHandler and have it do whatever you want, in my case add RBAC to opensource Grafana.

Let me know if there is something I should change. I am currently using a fork for my purpose but would love to see this added upstream.

kevcoxe avatar Mar 22 '23 18:03 kevcoxe