-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,163 additions
and
1,256 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#maven.buildNumber.plugin properties file | ||
#Wed Oct 02 16:49:28 CDT 2024 | ||
buildNumber\\d*=409 | ||
#Tue Oct 15 05:53:26 CDT 2024 | ||
buildNumber\\d*=439 |
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
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
14 changes: 14 additions & 0 deletions
14
client/src/main/java/org/oa4mp/delegation/client/request/RFC6749_4_4Request.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,14 @@ | ||
package org.oa4mp.delegation.client.request; | ||
|
||
import org.oa4mp.delegation.common.storage.clients.Client; | ||
|
||
import java.util.Map; | ||
|
||
public class RFC6749_4_4Request extends BasicRequest{ | ||
public RFC6749_4_4Request(Client client, Map<String, String> parameters, String keyID) { | ||
super(client, parameters, keyID); | ||
} | ||
|
||
public RFC6749_4_4Request() { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
client/src/main/java/org/oa4mp/delegation/client/request/RFC6749_4_4_Response.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,14 @@ | ||
package org.oa4mp.delegation.client.request; | ||
|
||
import net.sf.json.JSONObject; | ||
|
||
public class RFC6749_4_4_Response extends BasicResponse{ | ||
/** | ||
* Conveneience method that casts the parameter map to its underlying | ||
* JSON object. | ||
* @return | ||
*/ | ||
public JSONObject getJSON() { | ||
return (JSONObject) getParameters(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#maven.buildNumber.plugin properties file | ||
#Wed Oct 02 16:49:27 CDT 2024 | ||
buildNumber\\d*=12346 | ||
#Tue Oct 15 05:52:22 CDT 2024 | ||
buildNumber\\d*=12364 |
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
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
32 changes: 32 additions & 0 deletions
32
oauth2/src/main/java/org/oa4mp/delegation/server/client/RFC6749_4_4Server.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,32 @@ | ||
package org.oa4mp.delegation.server.client; | ||
|
||
import edu.uiuc.ncsa.security.servlet.ServiceClient; | ||
import net.sf.json.JSONObject; | ||
import org.oa4mp.delegation.client.request.RFC6749_4_4Request; | ||
import org.oa4mp.delegation.client.request.RFC6749_4_4_Response; | ||
import org.oa4mp.delegation.server.OA2Constants; | ||
|
||
import java.net.URI; | ||
import java.util.Map; | ||
|
||
public class RFC6749_4_4Server extends TokenAwareServer{ | ||
public RFC6749_4_4Server(ServiceClient serviceClient, URI issuer, String wellKnown, boolean serverOIDCEnabled) { | ||
super(serviceClient, issuer, wellKnown, serverOIDCEnabled); | ||
} | ||
public RFC6749_4_4_Response processRFC6749_4_4Request(RFC6749_4_4Request request) { | ||
Map parameters = request.getParameters(); | ||
String rawResponse; | ||
RFC6749_4_4_Response response = new RFC6749_4_4_Response(); | ||
if(parameters.containsKey(OA2Constants.CLIENT_ID)) { | ||
rawResponse = getServiceClient().doPost( parameters, | ||
(String)parameters.get(OA2Constants.CLIENT_ID), | ||
(String)parameters.get(OA2Constants.CLIENT_SECRET)); | ||
JSONObject jsonObject = JSONObject.fromObject(rawResponse); | ||
response.setParameters(jsonObject); | ||
} | ||
// Note that the spec is very explicit that a refresh token is never returned | ||
// in the initial exchange. | ||
return response; | ||
} | ||
|
||
} |
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.