You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/06/09 12:43:19 UTC

[isis] 03/09: ISIS-2727: AuthenticationAbstract now saves a reference to itself in InteractionContext#attributes map

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch ISIS-2727
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 7408f7e9bc8480c2d187b4dbea705d1870d94021
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Jun 9 12:21:00 2021 +0100

    ISIS-2727: AuthenticationAbstract now saves a reference to itself in InteractionContext#attributes map
---
 .../isis/core/security/authentication/AuthenticationAbstract.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/security/src/main/java/org/apache/isis/core/security/authentication/AuthenticationAbstract.java b/core/security/src/main/java/org/apache/isis/core/security/authentication/AuthenticationAbstract.java
index 85a8d02..6bba6fd 100644
--- a/core/security/src/main/java/org/apache/isis/core/security/authentication/AuthenticationAbstract.java
+++ b/core/security/src/main/java/org/apache/isis/core/security/authentication/AuthenticationAbstract.java
@@ -50,6 +50,8 @@ implements Authentication, Serializable {
             final @NonNull String validationCode) {
 
         this.interactionContext = interactionContext;
+        this.interactionContext.putAttribute(this.getClass().getName(), this);
+
         this.validationCode = validationCode;
     }