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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...