Jump to content

SAML / SSO support for uniGUI (raw/rough hack) - FREE


Recommended Posts

Merry Christmas... Attached is an raw/rough hack to implement SAML/SSO for office365/AzureAD

The attached code is very RAW, needs some cleanup. But it is working for me in a few projects.

It's FREE for anyone to improve/make into a component for others who use uniGUI.

It contains a few PAS files:

- ServerModule (Basically contains a List of OpenIDSessions

- MainModule uses the BeforeLogin event to call TOpenIDConnect.DoCallBack and create a UserInfo object (ie. Who is logged in)

- Login (a uniLoginForm) has a Button to Login via SSO (ie.   TOpenIDConnect.DoLogin(...)

- OpenIDConnect.pas and Pkg.Json.DTO.pas are the core bits which do the dirty work.

It's been extracted from a few projects.. So you WILL need to read/cut/paste etc.

If anyone wants to create a polished FREE component from this for the uniGUI community that would be great. (or if it was included in the uniGUI Core).

 

 

 

SAML and SSO.zip

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...