fix: saml xml metedata format

This commit is contained in:
JimMoen 2023-09-22 16:58:44 +08:00
parent a318ad486a
commit 2a8f3f9eaa
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ sp_saml_metadata(get, _Req) ->
#{sp := SP} = _State ->
SignedXml = esaml_sp:generate_metadata(SP),
Metadata = xmerl:export([SignedXml], xmerl_xml),
{200, #{<<"Content-Type">> => <<"text/xml">>}, Metadata}
{200, #{<<"Content-Type">> => <<"text/xml">>}, erlang:iolist_to_binary(Metadata)}
end.
sp_saml_callback(post, Req) ->