-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept and persist authorization_details of token request
- Accept 'authorization_details' field in the token request - Persist access token authorization details in the database - Moving common logic from oauth.rar.common module to a new rar package within oauth module - Adds RAR support for hybrid authorization flows
- Loading branch information
1 parent
c8d568e
commit f7544ce
Showing
63 changed files
with
2,761 additions
and
1,454 deletions.
There are no files selected for viewing
This file contains 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 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
47 changes: 47 additions & 0 deletions
47
...a/org/wso2/carbon/identity/oauth/endpoint/factory/AuthorizationDetailsServiceFactory.java
This file contains 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,47 @@ | ||
/* | ||
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. 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.oauth.endpoint.factory; | ||
|
||
import org.springframework.beans.factory.config.AbstractFactoryBean; | ||
import org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponentHolder; | ||
import org.wso2.carbon.identity.oauth2.rar.AuthorizationDetailsService; | ||
|
||
/** | ||
* This class is used to register AuthorizationDetailsService as a factory bean. | ||
*/ | ||
public class AuthorizationDetailsServiceFactory extends AbstractFactoryBean<AuthorizationDetailsService> { | ||
|
||
private AuthorizationDetailsService authorizationDetailsService; | ||
|
||
@Override | ||
public Class<AuthorizationDetailsService> getObjectType() { | ||
|
||
return AuthorizationDetailsService.class; | ||
} | ||
|
||
@Override | ||
protected AuthorizationDetailsService createInstance() throws Exception { | ||
|
||
if (this.authorizationDetailsService == null) { | ||
this.authorizationDetailsService = | ||
OAuth2ServiceComponentHolder.getInstance().getAuthorizationDetailsService(); | ||
} | ||
return this.authorizationDetailsService; | ||
} | ||
} |
This file contains 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 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.