Função que recupera o entityID do Service Provider ( SP ) e do Identity Provider ( IDP ) no arquivo de configuração do SAML.
getSAMLID ( <entityID>, <entityType>, [@errorMsg] ) --> flag
| Nome | Tipo | Descrição | Obrigatório | Referência |
| entityID | Caracter | EntityID do SP ou IDP | X | |
| entityType | Numérico | 1 - EntityID do SP 2 - EntityID do IDP | X | |
| errorMsg | Caracter | Em caso de erro, esta variável será preenchida com a descrição do erro. | X |
flag (Lógico)
- Retorna verdadeiro (.T.) em caso de sucesso; caso contrário, falso (.F.).
local entityID := ""
local error := ""
local ret := getSAMLID(@entityID, 1, @error) // 1 -> SP entityID
if ret == .F.
return alert("getSAMLID: " + error)
else
conout("SP EntityID: " + entityID)
endif
ret := getSAMLID(@entityID, 2, @error) // 2 -> IDP entityID
if ret == .F.
return alert("getSAMLID: " + error)
else
conout("IDP EntityID: " + entityID)
endif
Protheus 10 , TOTVS Application Server 10 , ByYou Application Server
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas