2023-06-13T1537H UTC+8: Technical Assessment on REST API Microservice Handling SAML Response Submitted

I managed to submit the technical assessment evening yesterday.

Basically the REST API accepts a post request with an XML payload containing the SAML response. Within the SAML response XML is the NameID node that contains the format and the NameID tag text. The format identifies the NameID format based from the SAML protocol (could be email, kerberos, etc) and the text value has to be validated if it's existing in the database. The database used is H2 and is embedded in the REST API microservice. Depending on the format an appropriate validator is then instantiated via factory design pattern.

I only gave a few hours in the development and spread it out a many days since evening of Friday.