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

External EC users can't authenticate #26

Closed
migratis opened this issue Oct 15, 2020 · 3 comments
Closed

External EC users can't authenticate #26

migratis opened this issue Oct 15, 2020 · 3 comments
Labels
question Further information is requested

Comments

@migratis
Copy link

Only internal users of the commission can be authenticated, when you are an external user (SELF_REGISTERED) you get this response from the EULogin servers :

"response" => "{"serviceResponse":{"authenticationFailure":{"@value":"Invalid user: "n002a0t6" belongs to "SELF_REGISTERED" users while application accepts only "INTERNAL" users or users with higher assurance levels","@attributes":{"code":"INVALID_USER"}},"@attributes":{"server":"EU Login PRODUCTION_GENESIS version 8.0.2.33926 - 07/09/2020 - 15:00","date":"2020-10-06T17:33:05.885+02:00","version":"5.8"}}}"

it looks like we miss the assuranceLevel Parameter to allow such authentication.

Steps required to reproduce the problem

  1. Registered to EULogin with a new user
  2. Authenticate to a symfony app using cas-bundle

Expected Result

Authentication success

Actual Result

Authentication failure

@drupol
Copy link
Member

drupol commented Oct 15, 2020

Hello,

For the authentication against ECAS/EULogin, I would suggest you to use the package ecphp/eu-login-bundle.

Then, you are free to edit/alter the default provided configuration with any parameter that you want.
As of today, the assuranceLevel parameter is not set, but it might be soon included, see ecphp/eu-login-bundle#1

Regards.

@drupol drupol changed the title external user of the commission can't authenticate External EC users can't authenticate Oct 16, 2020
@drupol drupol added the question Further information is requested label Oct 16, 2020
@drupol
Copy link
Member

drupol commented Feb 18, 2021

Dear @migratis ,

Do you have any new feedback on this?

Thanks.

@migratis
Copy link
Author

migratis commented Feb 23, 2021

To fix this issue, in the configuration file cas_bundle.yaml add this :
cas:
...
protocol:
...
serviceValidate:
allowed_parameters:
...
- assuranceLevel
...
default_parameters:
assuranceLevel: "LOW"

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

No branches or pull requests

2 participants