Вы можете определить интерфейс как:
interface DataInterface {
parent_id: number | string;
name: string;
}
Затем вы можете определить объект:
const data: DataInterface = {
parent_id: 0,
name: 'foo'
};
, и это будет разрешено тоже:
data.parent_id = '';
The way this works is that, after authenticating the user, the SAML identity provider (IdP) renders a form to the browser containing the SAML response - the form's 'action' (i.e. target) is the service provider (SP). In the HTML, there is a JavaScript onLoad event that submits the form, so the net effect is that the user is automatically taken from the IdP to the SP, SAML response in hand.
The only time a user would have to click anything to submit the form is if they have JavaScript disabled. In this case, SAML implementations typically provide a message with a button to press in the tag.
For more detail see this article I wrote a few years ago - but note, 'Lightbulb' is long obsolete now - for PHP SAML see simpleSAMLphp.
It's a shame your client wants to use CA SiteMinder - the open source OpenAM (formerly known as OpenSSO) does this pretty easily.
можно посмотреть на эту ссылку изображения для лучше понимания SAML SSO. Я также хочу дать Вам некоторые ссылки. Эти ссылки являются продуктом компаний и имеют очень интуитивный пример того, как SAML работает: - https://www.codeultimate.com/products/saml
Если Siteminder является проверяющей стороной, вам потребуется написать собственный агент, который будет использовать артефакт SAML и создавать SM-сеанс. В противном случае вам нужно будет приобрести продукт, в котором уже есть эта функция.