Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
richardbourne-ct opened this issue Dec 6, 2019 · 5 comments

Comments

@richardbourne-ct
Copy link

richardbourne-ct commented Dec 6, 2019

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
Copy link
Author

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}

@vivek7891
Copy link

Did anyone get the solution?

@richardbourne-ct
Copy link
Author

Not yet.

@amacciola
Copy link

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.

@richardbourne-ct
Copy link
Author

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

Sorry to not be of more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants