-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add api support to try out loginglow AI feature #681
base: master
Are you sure you want to change the base?
Conversation
94e7c77
to
b5bab1d
Compare
85c3582
to
9751286
Compare
...o2.carbon.identity.api.server.application.management.v1/src/main/resources/applications.yaml
Show resolved
Hide resolved
...o2.carbon.identity.api.server.application.management.v1/src/main/resources/applications.yaml
Outdated
Show resolved
Hide resolved
...o2.carbon.identity.api.server.application.management.v1/src/main/resources/applications.yaml
Outdated
Show resolved
Hide resolved
...o2.carbon.identity.api.server.application.management.v1/src/main/resources/applications.yaml
Outdated
Show resolved
Hide resolved
LoginFlowGenerateRequest: | ||
type: object | ||
properties: | ||
available_authenticators: |
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.
Be consistent with the existing naming convention. Fix other places in the PR as well.
...o2.carbon.identity.api.server.application.management.v1/src/main/resources/applications.yaml
Outdated
Show resolved
Hide resolved
public static final String CLAIM_URI_KEY = "claimURI"; | ||
public static final String DESCRIPTION_KEY = "description"; | ||
public static final String AUTHENTICATOR_NAME_KEY = "name"; | ||
public static final String AUTHENTICATOR_IDP_KEY = "idp"; | ||
public static final String AI_RESPONSE_DATA_KEY = "data"; | ||
public static final String AI_RESPONSE_STATUS_KEY = "status"; |
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.
Aren't these constant already available from the core in the framework?
|
||
package org.wso2.carbon.identity.api.server.application.management.common.factory; | ||
|
||
import org.springframework.beans.factory.config.AbstractFactoryBean; |
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.
We are currently removing the spring dependencies. Check whether refactoring this is needed to remove the spring dependencies.
@@ -187,6 +195,21 @@ public Response getInboundSAMLConfiguration(String applicationId) { | |||
return Response.ok(samlSp).build(); | |||
} | |||
|
|||
@Override | |||
public Response getLoginFlowResult(String operationId) { |
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.
Method name is not self descriptive.
Better to include a word that gives the meaning that this is for login flow generation
} | ||
|
||
@Override | ||
public Response getLoginFlowStatus(String operationId) { |
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.
Method name is not self descriptive.
Better to include a word that gives the meaning that this is for login flow generation status
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/api/server/application/management/v1/core/LoginFlowAIService.java
Outdated
Show resolved
Hide resolved
ddf97f9
to
0555308
Compare
Purpose
$subject
Related Issue(s)
Related PR(s)
*** NOTE: This PR should be merge after merging above pr with the framework version bump