Jump to content

saml, fornecedor de autenticação da administração pública portuguesa


Recommended Posts

Posted

Boas

por acaso alguém já trabalhou com saml, nomeadamente com o "fornecedor de autenticação da administração pública portuguesa".

que me possa dar umas dicas ?

estou a analisar o doc

http://www.cartaodecidadao.pt/documentos/integracao_com_fa_v1.3.1.pdf

os links dos atributos não é correcto (pág 59, inicio) e não consigo gerar o xsd através do xml, bate nos atributos,

o link não existe (http://autenticacao.cartaodecidadao.pt/atributos)

gerar xsd : http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/

<samlp:Extensions>

<fa:RequestedAttributes xmlns:fa="http://autenticacao.cartaodecidadao.pt/atributos">

<fa:RequestedAttribute Name=" http://interop.gov.pt/MDC/Cidadao/NomeCompleto"

NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true"/>

</fa:RequestedAttributes>

</samlp:Extensions>

</samlp:AuthnRequest>

+++++++++++++++

apos ter passado o xml para os vários xsd, ao gerar as classes para c#,

ao executar o xsd, dá o erro abaixo

xsd teste.xsd saml.xsd x.xsd xmldsig.xsd /classes /namespace:teste /outputdir:..

Microsoft ® Xml Schemas/DataTypes support utility

[Microsoft ® .NET Framework, Version 4.0.30319.1]

Copyright © Microsoft Corporation. All rights reserved.

Schema validation warning: The 'http://autenticacao.cartaodecidadao.pt/atributos

:RequestedAttributes' element is not declared. Line 26, position 10.

Warning: Schema could not be validated. Class generation may fail or may produce

incorrect results.

Error: Error generating classes for schema 'teste_saml_x_xmldsig'.

- The element 'http://autenticacao.cartaodecidadao.pt/atributos:RequestedAttributes' is missing.

If you would like more help, please type "xsd /?".

+++++++++++++++

tank's

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.