-
Notifications
You must be signed in to change notification settings - Fork 558
Bring First Class Support for AMR #6598
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
Open
Eranda2001
wants to merge
30
commits into
wso2:master
Choose a base branch
from
Eranda2001:feature-amr-copy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
63e0ca6
Initial Changes
Eranda2001 1b5f48b
FederatedAuthenticator level changes
Eranda2001 3622107
AMR Updated
Eranda2001 402cad3
System Local Authenticator AMR fixes
Eranda2001 31822ab
Initial Changes
Eranda2001 5ede0d3
Intermediate
Eranda2001 d0b8c3b
Changes 3/4
Eranda2001 11d5266
/authenticators/system and Validation
Eranda2001 2560215
/authenticators/system and Validation
Eranda2001 666c2e3
j2 changes and remove management level isExistingAuthenticatorNameDB
Eranda2001 2fef8f7
Cache Layer Implementation and changes to default.json
Eranda2001 5999d46
Add SQL constants
Eranda2001 0d76fa8
Formatting changes and minor fixes
Eranda2001 615b064
Formatting changes and minor fixes
Eranda2001 a151efe
minor fixes
Eranda2001 102d96a
Test Cases
Eranda2001 63368d3
wsdl changes
Eranda2001 7d54e2f
wsdl bug fix
Eranda2001 5e45aaa
Updated test cases
Eranda2001 6b50504
Update federated auth
Eranda2001 3a12f4a
Checkstyle update
Eranda2001 33b9ed1
Checkstyle update
Eranda2001 c494cac
Checkstyle update
Eranda2001 5052916
Merged the localAuthenticators list loaded on server startup and syst…
Eranda2001 9e8b105
minor fixes
Eranda2001 af879cb
Code Review Requested Changes
Eranda2001 782b273
Minor Changes
Eranda2001 f908b80
Minor Changes
Eranda2001 815d645
Minor Fix
Eranda2001 21c8f16
Caching Issue
Eranda2001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...va/org/wso2/carbon/identity/application/common/cache/SystemDefinedAuthenticatorCache.java
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.identity.application.common.cache; | ||
|
||
import org.wso2.carbon.identity.core.cache.BaseCache; | ||
import org.wso2.carbon.utils.CarbonUtils; | ||
|
||
/** | ||
* Cache for the system defined authenticator configurations. | ||
*/ | ||
public class SystemDefinedAuthenticatorCache extends | ||
BaseCache<SystemDefinedAuthenticatorCacheKey, SystemDefinedAuthenticatorCacheEntry> { | ||
|
||
private static final String SYSTEM_DEFINED_AUTHENTICATOR_CACHE_NAME = "SystemDefinedAuthenticatorCache"; | ||
private static final SystemDefinedAuthenticatorCache INSTANCE = new SystemDefinedAuthenticatorCache(); | ||
|
||
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
private SystemDefinedAuthenticatorCache() { | ||
super(SYSTEM_DEFINED_AUTHENTICATOR_CACHE_NAME); | ||
} | ||
|
||
public static SystemDefinedAuthenticatorCache getInstance() { | ||
|
||
CarbonUtils.checkSecurity(); | ||
return INSTANCE; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...g/wso2/carbon/identity/application/common/cache/SystemDefinedAuthenticatorCacheEntry.java
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.identity.application.common.cache; | ||
|
||
import org.wso2.carbon.identity.application.common.model.LocalAuthenticatorConfig; | ||
import org.wso2.carbon.identity.core.cache.CacheEntry; | ||
|
||
/** | ||
* Cache Entry for the system defined authenticator configurations. | ||
*/ | ||
public class SystemDefinedAuthenticatorCacheEntry extends CacheEntry { | ||
|
||
private LocalAuthenticatorConfig authenticatorConfig; | ||
|
||
public SystemDefinedAuthenticatorCacheEntry(LocalAuthenticatorConfig authenticatorConfig) { | ||
|
||
this.authenticatorConfig = authenticatorConfig; | ||
} | ||
|
||
public LocalAuthenticatorConfig getAuthenticatorConfig() { | ||
|
||
return authenticatorConfig; | ||
} | ||
|
||
public void setAuthenticatorConfig(LocalAuthenticatorConfig authenticatorConfig) { | ||
|
||
this.authenticatorConfig = authenticatorConfig; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...org/wso2/carbon/identity/application/common/cache/SystemDefinedAuthenticatorCacheKey.java
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.identity.application.common.cache; | ||
|
||
import org.wso2.carbon.identity.core.cache.BaseCache; | ||
import org.wso2.carbon.identity.core.cache.CacheKey; | ||
|
||
/** | ||
* Cache key for the system defined authenticator configurations. | ||
*/ | ||
public class SystemDefinedAuthenticatorCacheKey extends CacheKey { | ||
|
||
private final String authenticatorName; | ||
|
||
public SystemDefinedAuthenticatorCacheKey(String authenticatorName) { | ||
|
||
this.authenticatorName = authenticatorName; | ||
} | ||
|
||
public String getAuthenticatorName() { | ||
|
||
return authenticatorName; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
Eranda2001 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if (!(o instanceof AuthenticatorCacheKey)) { | ||
return false; | ||
} | ||
return authenticatorName.equals(((AuthenticatorCacheKey) o).getAuthenticatorName()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
|
||
return authenticatorName.hashCode(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.