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/06 16:25:12 UTC

[isis] 02/08: ISIS-2483: adds new refguide-index for other recent new tickets

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

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

commit ac998d1bf6092e5f43aa098d0f172b471d531626
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sun Jun 6 15:58:19 2021 +0100

    ISIS-2483: adds new refguide-index for other recent new tickets
---
 .../manager/AnonymousInteractionFactory.adoc       | 31 ++++++++++++++++++++++
 .../authenticator/AuthenticatorSecman.adoc         | 19 +++++++++++++
 .../AuthenticatorSecmanAutoConfiguration.adoc      | 13 +++++++++
 3 files changed, 63 insertions(+)

diff --git a/antora/components/refguide-index/modules/core/pages/index/security/authentication/manager/AnonymousInteractionFactory.adoc b/antora/components/refguide-index/modules/core/pages/index/security/authentication/manager/AnonymousInteractionFactory.adoc
new file mode 100644
index 0000000..c5cbc29
--- /dev/null
+++ b/antora/components/refguide-index/modules/core/pages/index/security/authentication/manager/AnonymousInteractionFactory.adoc
@@ -0,0 +1,31 @@
+= AnonymousInteractionFactory _(interface)_
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+Inversion of dependency pattern.
+
+Introduced to allow the AuthenticationManager (module: security) access to the InteractionFactory service (module: interaction), which otherwise was not possible, due to Maven module dependencies (preventing circles).
+
+== API
+
+[source,java]
+.AnonymousInteractionFactory.java
+----
+interface AnonymousInteractionFactory {
+  void runAnonymous(ThrowingRunnable runnable)
+  R callAnonymous(Callable<R> callable)
+  AnonymousInteractionFactory forTesting()     // <.>
+}
+----
+
+<.> xref:#forTesting__[forTesting()]
++
+--
+Returns a pass-through implementation, free of side-effects, in support of simple JUnit tests.
+--
+
+== Members
+
+[#forTesting__]
+=== forTesting()
+
+Returns a pass-through implementation, free of side-effects, in support of simple JUnit tests.
diff --git a/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecman.adoc b/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecman.adoc
new file mode 100644
index 0000000..7bf365b
--- /dev/null
+++ b/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecman.adoc
@@ -0,0 +1,19 @@
+= AuthenticatorSecman
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+xref:refguide:core:index/security/authentication/Authenticator.adoc[Authenticator] implementation that authenticates the xref:refguide:extensions:index/secman/applib/user/dom/ApplicationUser.adoc[ApplicationUser] , first that the user exists and secondly that the provided password matches the _ApplicationUser#getEncryptedPassword() encrypted password_ of the user.
+
+This Authenticator is a fallback and is only used if there is no other implementation available.
+
+== API
+
+[source,java]
+.AuthenticatorSecman.java
+----
+class AuthenticatorSecman {
+  boolean canAuthenticate(final Class<? extends AuthenticationRequest> authenticationRequestClass)
+  Authentication authenticate(final AuthenticationRequest request, final String code)
+  void logout(final Authentication session)
+}
+----
+
diff --git a/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecmanAutoConfiguration.adoc b/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecmanAutoConfiguration.adoc
new file mode 100644
index 0000000..a313c94
--- /dev/null
+++ b/antora/components/refguide-index/modules/extensions/pages/index/secman/integration/authenticator/AuthenticatorSecmanAutoConfiguration.adoc
@@ -0,0 +1,13 @@
+= AuthenticatorSecmanAutoConfiguration
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+== API
+
+[source,java]
+.AuthenticatorSecmanAutoConfiguration.java
+----
+class AuthenticatorSecmanAutoConfiguration {
+  Authenticator authenticatorSecman(final ApplicationUserRepository applicationUserRepository, final PasswordEncryptionService passwordEncryptionService)
+}
+----
+