-
Notifications
You must be signed in to change notification settings - Fork 378
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
Make dcr changes to add tls bound access token as a token binding type #2235
Make dcr changes to add tls bound access token as a token binding type #2235
Conversation
…inbound-auth-oauth into master_DCR_Validations � Conflicts: � components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthAdminServiceImpl.java � components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthUtil.java
…inbound-auth-oauth into master_DCR_Validations
@@ -247,6 +247,9 @@ public static SubjectType fromValue(String text) { | |||
"SupportedIDTokenEncryptionMethod"; | |||
public static final String REQUEST_OBJECT_ENCRYPTION_METHOD = "OAuth.OpenIDConnect." + | |||
"SupportedRequestObjectEncryptionMethods.SupportedRequestObjectEncryptionMethod"; | |||
|
|||
public static final String ENABLE_TLS_CERT_TOKEN_BINDING = "OAuth.OpenIDConnect." + |
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 have already added a constant for this ENABLE_TLS_CERT_BOUND_ACCESS_TOKENS_VIA_BINDING_TYPE
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.
changed
@@ -642,6 +645,8 @@ private SignatureAlgorithms() { | |||
public static class TokenBindings { | |||
|
|||
public static final String NONE = "NONE"; | |||
|
|||
public static final String CERTIFICATE_BASED_TOKEN_BINDER = "certificate"; |
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 do have a constant for this as well
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.
removed
@@ -100,8 +100,7 @@ | |||
import static org.wso2.carbon.identity.oauth.Error.INVALID_REQUEST; | |||
import static org.wso2.carbon.identity.oauth.OAuthUtil.handleError; | |||
import static org.wso2.carbon.identity.oauth.OAuthUtil.handleErrorWithExceptionType; | |||
import static org.wso2.carbon.identity.oauth.common.OAuthConstants.OauthAppStates.APP_STATE_ACTIVE; | |||
import static org.wso2.carbon.identity.oauth.common.OAuthConstants.OauthAppStates.APP_STATE_DELETED; | |||
import static org.wso2.carbon.identity.oauth.common.OAuthConstants.OauthAppStates.*; |
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.
Shall we add the static imports separately?
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.
changed
…inbound-auth-oauth into master_DCR_Validations
if (Boolean.parseBoolean(IdentityUtil.getProperty( | ||
OAuthConstants.ENABLE_TLS_CERT_BOUND_ACCESS_TOKENS_VIA_BINDING_TYPE))) { |
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.
instead of checking for the config here lets check if the CERTIFICATE_BASED_TOKEN_BINDER component is available and then set it.
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.
changed
if (Boolean.parseBoolean(IdentityUtil.getProperty( | ||
OAuthConstants.ENABLE_TLS_CERT_BOUND_ACCESS_TOKENS_VIA_BINDING_TYPE))) { |
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.
instead of checking for the config here lets check if the CERTIFICATE_BASED_TOKEN_BINDER component is available and then set it.
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.
changed
...oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/internal/DCRServiceComponent.java
Outdated
Show resolved
Hide resolved
...ntity.oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/internal/DCRDataHolder.java
Outdated
Show resolved
Hide resolved
...ntity.oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/internal/DCRDataHolder.java
Show resolved
Hide resolved
...identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/service/DCRMService.java
Outdated
Show resolved
Hide resolved
...identity.oauth.dcr/src/main/java/org/wso2/carbon/identity/oauth/dcr/service/DCRMService.java
Outdated
Show resolved
Hide resolved
…inbound-auth-oauth into master_DCR_Validations
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
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.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6848936420
Proposed changes in this pull request
Map the tls_client_certificate_bound_access_tokens property as a token binding type in the DCR flow.
[List all changes you want to add here. If you fixed an issue, please
add a reference to that issue as well.]
When should this PR be merged
[Please describe any preconditions that need to be addressed before we
can merge this pull request.]
Follow up actions
[List any possible follow-up actions here; for instance, testing data
migrations, software that we need to install on staging and production
environments.]
Checklist (for reviewing)
General
Functionality
Code
Tests
Security
Documentation