-
Notifications
You must be signed in to change notification settings - Fork 44
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
AUP exemption #811
base: develop
Are you sure you want to change the base?
AUP exemption #811
Conversation
...ervice/src/test/java/it/infn/mw/iam/test/notification/RegistrationFlowNotificationTests.java
Outdated
Show resolved
Hide resolved
...n-service/src/test/java/it/infn/mw/iam/test/notification/ServiceAccountNotificationTest.java
Outdated
Show resolved
Hide resolved
...n-service/src/test/java/it/infn/mw/iam/test/notification/ServiceAccountNotificationTest.java
Outdated
Show resolved
Hide resolved
...tence/src/main/java/it/infn/mw/iam/persistence/repository/IamAupSignatureRepositoryImpl.java
Outdated
Show resolved
Hide resolved
iam-common/src/main/java/it/infn/mw/iam/service/aup/DefaultAupSignatureCheckService.java
Outdated
Show resolved
Hide resolved
...n-service/src/test/java/it/infn/mw/iam/test/notification/ServiceAccountNotificationTest.java
Outdated
Show resolved
Hide resolved
iam-persistence/src/main/resources/db/migration/h2/V106__add_service_account.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, the PR looks good to me.
I have only some comments:
- would it be better to handle the IamAupSignatureUpdateError exception and print the error message? now only the status code 405 is shown
- if the user is set up as a service account after having already signed the AUP, does it make sense to set the AUP signature time to null? this should not even trigger the AUP expiry reminder emails
I agree, we could add an ExceptionHandler like this in the same controller this https://github.com/indigo-iam/iam/pull/811/files#diff-a8bc81ad573d8d00f0b71699cc5862722f1bc38abdd3c9cd03e206639a9f904aR205-R209
It makes sense to me. In my opinion when the administrator is prompted with the message of "service account creation" it should be aware of the fact that this account will lose the signatures and it will be exempted from them in the future. Again, as soon as the admin is going to switch again from a service account to a "normal" one, we could be very clear in the message by explaining that the user won't have any signature so he can decide to sign it on behalf in case. |
We had a discussion regarding deletion of existing AUP signature. During that @enricovianello mentioned that if Admin by mistake set the account as I think checking the service account status check during AUP reminder is a good idea. If all agree I could add that additional check. |
When the account is set up as a service account, the signature of the aup is skipped (if it is defined), but what if it accidentally goes to the iam/iam-login-service/src/main/java/it/infn/mw/iam/api/aup/AupSignaturePageController.java Line 99 in bddf581
|
I am going to add the exception handler and a test. |
iam-login-service/src/main/java/it/infn/mw/iam/api/aup/AupSignaturePageController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add things to SCIM user that are not in the SCIM protocol we need to add them inside ScimIndigoUser extension object
iam-login-service/src/main/java/it/infn/mw/iam/api/scim/model/ScimUser.java
Outdated
Show resolved
Hide resolved
cd38727
to
a48620e
Compare
Quality Gate passedIssues Measures |
No description provided.