CastleSoft Posted December 22, 2022 Share Posted December 22, 2022 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 2 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.