sureshanaparti commented on code in PR #12702:
URL: https://github.com/apache/cloudstack/pull/12702#discussion_r2999688103
##########
api/src/main/java/org/apache/cloudstack/auth/UserOAuth2Authenticator.java:
##########
@@ -44,6 +44,17 @@ public interface UserOAuth2Authenticator extends Adapter {
*/
String verifyCodeAndFetchEmail(String secretCode);
+ /**
+ * Verifies if the logged in user is valid for a specific domain
+ * @return returns true if its valid user
+ */
+ boolean verifyUser(String email, String secretCode, Long domainId);
+
+ /**
+ * Verifies the code provided by provider and fetches email for a specific
domain
Review Comment:
```suggestion
* Verifies the secret code provided by provider and fetches email for a
specific domain
```
##########
api/src/main/java/org/apache/cloudstack/auth/UserOAuth2Authenticator.java:
##########
@@ -44,6 +44,17 @@ public interface UserOAuth2Authenticator extends Adapter {
*/
String verifyCodeAndFetchEmail(String secretCode);
+ /**
+ * Verifies if the logged in user is valid for a specific domain
+ * @return returns true if its valid user
+ */
+ boolean verifyUser(String email, String secretCode, Long domainId);
+
+ /**
+ * Verifies the code provided by provider and fetches email for a specific
domain
+ * @return returns email
+ */
+ String verifyCodeAndFetchEmail(String secretCode, Long domainId);
Review Comment:
```suggestion
String verifySecretCodeAndFetchEmail(String secretCode, Long domainId);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]