-
Notifications
You must be signed in to change notification settings - Fork 36
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
IDSDEV-678-Add New Publishing Points for Token Failure #256
base: mig-release-2.2.0-integration
Are you sure you want to change the base?
IDSDEV-678-Add New Publishing Points for Token Failure #256
Conversation
IDSDEV-365 Mobile Connect Request Validator Capability in IDGW Related Development
…en creating SP when there is no SP available in the SP store,Bug fixed when taking token code from the SP which are created locally using UI
IDSDEV-548 Bug fixes for updating sp-configuration table,Bug fixed wh…
* DB Wiring done * Multiple scope fix * Pom fix
#tc_checkbox { | ||
/* Double-sized Checkboxes */ | ||
-ms-transform: scale(1.5); /* IE */ | ||
-moz-transform: scale(1.5); /* FF */ |
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.
/* Double-sized Checkboxes */ | ||
-ms-transform: scale(1.5); /* IE */ | ||
-moz-transform: scale(1.5); /* FF */ | ||
-webkit-transform: scale(1.5); /* Safari and Chrome */ |
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.
-ms-transform: scale(1.5); /* IE */ | ||
-moz-transform: scale(1.5); /* FF */ | ||
-webkit-transform: scale(1.5); /* Safari and Chrome */ | ||
-o-transform: scale(1.5); /* Opera */ |
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.
} | ||
|
||
.btn-danger { | ||
color: #fff !important; |
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.
} | ||
|
||
.btn-normal { | ||
color: #fff !important; |
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.
|
||
.btn-normal { | ||
color: #fff !important; | ||
background-color:#463F61 !important; |
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.
.btn-normal { | ||
color: #fff !important; | ||
background-color:#463F61 !important; | ||
border-color: #463F61 !important; |
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.
color: #fff !important; | ||
background-color:#463F61 !important; | ||
border-color: #463F61 !important; | ||
margin-top: 6px !important; |
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.
margin-bottom: -1px; | ||
background-color: #fff; | ||
border: 1px solid #ddd; | ||
border-left: 0px; |
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.
|
||
|
||
.fa.pull-right { | ||
margin-top: 0.5em; |
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.
DBUtil.insertConsentHistoryDetails(msisdn, apprScope, clientID, operatorID, "approve"); | ||
} | ||
} catch (SQLException | NamingException e) { | ||
e.printStackTrace(); |
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.
* .application.authentication.framework.context.AuthenticationContext) | ||
*/ | ||
@Override | ||
public AuthenticatorFlowStatus process(HttpServletRequest request, HttpServletResponse response, |
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.
else if(context.getProperty(Constants.APPROVED_ALL_SCOPES)!=null){ | ||
String approvedScopesString = context.getProperty(Constants.APPROVED_ALL_SCOPES).toString(); | ||
String approvedScopesStringMinBracket = approvedScopesString.substring( 1, approvedScopesString.length() - 1); | ||
String[] approved_scopes = approvedScopesStringMinBracket.split( ", "); |
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.
import com.wso2telco.ids.datapublisher.model.UserStatus; | ||
import com.wso2telco.ids.datapublisher.util.DataPublisherUtil; | ||
|
||
// TODO: Auto-generated Javadoc |
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.
case Constants.APPROVEALL: | ||
String scopesString = context.getProperty(Constants.APPROVED_ALL_SCOPES).toString(); | ||
String scopesStringMinBracket = scopesString.substring( 1, scopesString.length() - 1); | ||
String[] api_Scopes = scopesStringMinBracket.split( ", "); |
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.
DBUtil.insertConsentHistoryDetails(msisdn, apprScope, clientID, operatorID, "deny"); | ||
} | ||
} catch (SQLException | NamingException e) { | ||
e.printStackTrace(); |
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.
approveAllScopes.add(apiApproveScope); | ||
} | ||
} | ||
if (approveAllScopes.size() == 0) { |
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.
* .AuthenticationContext) | ||
*/ | ||
@Override | ||
protected void initiateAuthenticationRequest(HttpServletRequest request, HttpServletResponse response, |
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.
import org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException; | ||
import org.wso2.carbon.identity.base.IdentityException; | ||
import org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceStub; |
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.
*/ | ||
public static void publishNewUserData(UserStatus userStatus) { | ||
List<Object> userStatusMetaData = new ArrayList<Object>(); |
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.
@@ -60,140 +67,173 @@ public UserProfileManager() { | |||
public boolean createUserProfileLoa2(String username, String operator, String scope) throws |
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.
userDTO.setUserName(username); | ||
|
||
// add user DTO to the user registration admin service client | ||
try { |
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.
} else if (MOBILE_CLAIM_NAME.equalsIgnoreCase(userFieldDTOs[count].getClaimUri())) { | ||
userFieldDTOs[count].setFieldValue(username); | ||
if (AdminServiceUtil.isUserExists(username)) { | ||
try { |
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.
adminURL); | ||
|
||
UserFieldDTO[] userFieldDTOs = new UserFieldDTO[0]; | ||
try { |
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.
} else { | ||
userFieldDTOs[count].setFieldValue(""); | ||
if (AdminServiceUtil.isUserExists(username)) { | ||
try { |
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.
adminURL); | ||
|
||
UserFieldDTO[] userFieldDTOs = new UserFieldDTO[0]; | ||
try { |
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.
userDTO.setUserName(username); | ||
|
||
// add user DTO to the user registration admin service client | ||
try { |
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.
@@ -275,7 +282,7 @@ public String buildIDToken(OAuthTokenReqMessageContext request, | |||
|
|||
if (dataPublisherEnabled) { | |||
//Publish event | |||
Map<String, String> tokenMap = new HashMap<String, String>(); | |||
//Map<String, String> tokenMap = new HashMap<String, String>(); |
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.
return parameters; | ||
} | ||
|
||
public static String getSPConfigValue(String operator, String clientID, String key) |
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.
} catch (SQLException e) { | ||
throw new SQLException("Error occurred while retrieving scopeID for scope : " + scope, e); | ||
} catch (NamingException e) { | ||
throw new ConfigurationException("DataSource could not be found in mobile-connect.xml"); |
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.
No description provided.