samly icon indicating copy to clipboard operation
samly copied to clipboard

ADFS - AADSTS750056: SAML message was not properly base64-encoded.

Open richardbourne-ct opened this issue 5 years ago • 5 comments

I have recently upgraded my deps from:

     {:phoenix, "~> 1.3.3"},
     {:phoenix_pubsub, "~> 1.0"},
     {:phoenix_ecto, "~> 3.2"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.6"},
     {:phoenix_live_reload, "~> 1.0", only: :dev},
     {:gettext, "~> 0.11"},
     {:plug_cowboy, "~> 1.0"},
     {:absinthe, "~> 1.4.2"},
     {:absinthe_plug, "~> 1.4.0"},
     {:absinthe_phoenix, "~> 1.4.0"},
     {:absinthe_relay, "~> 1.4.0"},
     {:distillery, "~> 0.10.1"},
     {:samly, "~> 0.8"},
     {:timex, "~> 3.1"},
     {:guardian, "~> 1.0"},
     {:comeonin, "~> 4.1"},
     {:bcrypt_elixir, "~> 1.0"},
     {:temp, "~> 0.4"},
     {:xml_builder, "~> 2.0.0"}

to:

     {:phoenix, "~> 1.4.11"},
     {:phoenix_pubsub, "~> 1.1.2"},
     {:phoenix_ecto, "~> 4.1.0"},
     {:ecto_sql, "~> 3.2"},
     {:postgrex, "~> 0.15.1"},
     {:phoenix_html, "~> 2.13.3"},
     {:phoenix_live_reload, "~> 1.2.1", only: :dev},
     {:plug_cowboy, "~> 2.1.0"},
     {:absinthe, "~> 1.4.16"},
     {:absinthe_plug, "~> 1.4.7"},
     {:absinthe_phoenix, "~> 1.4.4"},
     {:absinthe_relay, "~> 1.4.6"},
     {:distillery, "~> 2.1.1"},
     {:samly, "~> 1.0.0"},
     {:timex, "~> 3.6.1"},
     {:guardian, "~> 1.2.1"},
     {:comeonin, "~> 5.1.3"},
     {:bcrypt_elixir, "~> 2.0.3"},
     {:temp, "~> 0.4.7"},
     {:gettext, "~> 0.11"},
     {:jason, "~> 1.1.2"},
     {:poison, "~> 4.0.1"},
     {:xml_builder, "~> 2.1.2"}

and am now seeing the following ADFS error:

AADSTS750056: SAML message was not properly base64-encoded.

Is there anything obvious you can suggest?

Thanks

Richard

richardbourne-ct avatar Dec 06 '19 16:12 richardbourne-ct

Quick update to this, I started again and only made the following changes, still same error:

-      {:samly, "~> 0.8"},
+      {:samly, "~> 1.0.0"},
+      {:esaml, "~> 3.7", override: true}

richardbourne-ct avatar Dec 09 '19 17:12 richardbourne-ct

Did anyone get the solution?

vivek7891 avatar Dec 17 '19 17:12 vivek7891

Not yet.

richardbourne-ct avatar Dec 17 '19 17:12 richardbourne-ct

I have the same issue. Trying to integrate with ADFS IDP but having the error,

System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 

being thrown on the ADFS server. If i use version {:samly, "~> 0.8"} it works but then i am using an unsupported version.

amacciola avatar May 29 '20 20:05 amacciola

My project didn't go any further so I didn't push on with a fix.

Sorry to not be of more help.

richardbourne-ct avatar May 29 '20 21:05 richardbourne-ct