Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sahandilshan
Copy link
Contributor

Purpose

$subject

Related Issue(s)

Related PR(s)

@sahandilshan sahandilshan requested a review from pamodaaw October 6, 2024 16:58
@CLAassistant
Copy link

CLAassistant commented Oct 6, 2024

CLA assistant check
All committers have signed the CLA.

LoginFlowGenerateRequest:
type: object
properties:
available_authenticators:
Copy link
Member

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.

Comment on lines +91 to +96
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";
Copy link
Member

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;
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants