chrodriguez / redmine_omniauth_saml

Plugins that adds SAML authentication support for "Redmine"
GNU General Public License v2.0
38 stars 56 forks source link

「translation missing: ja.error_saml_invalid_ticket」error #25

Open naeba opened 7 years ago

naeba commented 7 years ago

Hi

I'm getting this error 「translation missing: ja.error_saml_invalid_ticket」

When I try to access to Redmine from Windows ADFS, I got above error.

<Access route>   Client PC → ADFS → Redmine

I would like to test through plugin-test「add integration tests」 for this solution. Please let me know, How to use it. If Does it work this error.

And How to solve this error?


Environment: Redmine version 3.3.0.stable Ruby version 2.1.10-p492 (2016-04-01) [x86_64-linux] Rails version 4.2.6 Environment production Database adapter Mysql2 SCM: Subversion 1.9.4 Cvs 1.12.13 Git 2.7.4 Filesystem
Redmine plugins: narrowdown 0.0.1 periodictask 3.2.1 redmine_assign_grouping 0.0.1 redmine_custom_workflows 0.1.6 redmine_issue_templates 0.1.4 redmine_omniauth_saml 0.0.1 redmine_slack 0.2

chrodriguez commented 7 years ago

Are both servers in sync? I mean, with the same time? Are you using NTP? The reason of an Invalid tickets is often server with different date time configuration, or a ssl error

naeba commented 7 years ago

Thank you for your reply!!

Actually, Redmine is on AWS EC2. Then originally Redmine was different time with ADFS Server But We configured the same time with it. ※We don't use NTP, Just useing local time.

About SSL error... configured X.509-certificate of ADFS on Redmine Server. I think it is correct..

But just concern AWS structure. exactly speaking, it is as follows.

ADFS → ELB → EC2(Redmine) (HTTPS) (HTTP) ※ELB:HTTPS(443) forwarding to HTTP(80)

What do you think that is this the reason?

Best regards

naeba commented 7 years ago

We are still trying SAML-connection. But it's not works.

We've begun to set debbug-log, then I realized one thing. When I Do SAML-authentication, debbug-log says "[DEBBUG] AccountController unless" which means it's not read「AccountController.included_modules」 I guess.

▼Ruby-File :  account_controller_patch.rb

▼part of code: unless AccountController.included_modules.include? Redmine::OmniAuthSAML::AccountControllerPatch Rails.application.config.testlog.debug("[d] AccountController unless") # ←Debbug_Add AccountController.send(:include, Redmine::OmniAuthSAML::AccountControllerPatch) AccountController.skip_before_filter :verify_authenticity_token, :only => [:login_with_saml_callback] end

Does anyone know what is this? ※File Permission ?

Thanks

chrodriguez commented 7 years ago

I think AccountController is loaded because it wont give you the error translation missing: ja.error_saml_invalid_ticket if not loadeed.

Can you paste the full stacktrace of the error?

chrodriguez commented 7 years ago

Did you fix this issue?

lasith98 commented 5 years ago

https://xxxx.cm/auth/saml/callback This page isn’t working If the problem continues, contact the site owner. HTTP ERROR 422 G suite