Github user nazeer1100126 commented on a diff in the pull request:
https://github.com/apache/fineract/pull/374#discussion_r133724306
--- Diff:
fineract-provider/src/main/resources/META-INF/spring/securityContext.xml ---
@@ -42,19 +42,26 @@
method="POST" requires-channel="https" />
<intercept-url pattern="/api/*/self/registration/user"
access="permitAll"
method="POST" requires-channel="https" />
- <intercept-url pattern="/api/**"
access="isFullyAuthenticated()"
+ <intercept-url pattern="/api/*/twofactor"
access="isFullyAuthenticated()"
+ method="GET"
requires-channel="https" />
+ <intercept-url pattern="/api/*/twofactor"
access="isFullyAuthenticated()"
+ method="POST"
requires-channel="https" />
+ <intercept-url pattern="/api/*/twofactor/validate"
access="isFullyAuthenticated()"
+ method="POST"
requires-channel="https" />
+ <intercept-url pattern="/api/**"
access="isFullyAuthenticated() and hasAuthority('TWOFACTOR_AUTHENTICATED')"
method="GET" requires-channel="https" />
- <intercept-url pattern="/api/**"
access="isFullyAuthenticated()"
+ <intercept-url pattern="/api/**"
access="isFullyAuthenticated() and hasAuthority('TWOFACTOR_AUTHENTICATED')"
--- End diff --
for pattern="/api/*/twofactor , why we have only isFullyAuthenticated()
access?
for other pattern like pattern="/api/** we have access
access="isFullyAuthenticated() and hasAuthority('TWOFACTOR_AUTHENTICATED') ?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---