From 1cc0e37df6ce4933eaace412bcd964fbaa25e282 Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:48:56 -0500 Subject: [PATCH] Add support for custom grant types Issue gh-14657 --- ...ClientOAuth2AccessTokenResponseClient.java | 25 +++++++++++++++++++ ...activeOAuth2AccessTokenResponseClient.java | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/RestClientOAuth2AccessTokenResponseClient.java create mode 100644 oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/WebClientReactiveOAuth2AccessTokenResponseClient.java diff --git a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/RestClientOAuth2AccessTokenResponseClient.java b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/RestClientOAuth2AccessTokenResponseClient.java new file mode 100644 index 0000000000..3c03392d1b --- /dev/null +++ b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/RestClientOAuth2AccessTokenResponseClient.java @@ -0,0 +1,25 @@ +/* + * Copyright 2002-2024 the original author or authors. + * + * Licensed 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 + * + * https://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.springframework.security.oauth2.client.endpoint; + +/** + * @author Steve Riesenberg + */ +public final class RestClientOAuth2AccessTokenResponseClient + extends AbstractRestClientOAuth2AccessTokenResponseClient { + +} diff --git a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/WebClientReactiveOAuth2AccessTokenResponseClient.java b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/WebClientReactiveOAuth2AccessTokenResponseClient.java new file mode 100644 index 0000000000..d50a5f1a78 --- /dev/null +++ b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/WebClientReactiveOAuth2AccessTokenResponseClient.java @@ -0,0 +1,25 @@ +/* + * Copyright 2002-2024 the original author or authors. + * + * Licensed 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 + * + * https://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.springframework.security.oauth2.client.endpoint; + +/** + * @author Steve Riesenberg + */ +public final class WebClientReactiveOAuth2AccessTokenResponseClient + extends AbstractWebClientReactiveOAuth2AccessTokenResponseClient { + +}