Skip to content

Commit 4b6948f

Browse files
authored
Add back missing method to OIDAuthorizationResponse (#825)
1 parent 4625d9d commit 4b6948f

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed

AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme

+9-13
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "340E737B1C5D819B0076B1F6"
34+
BuildableName = "libAppAuth-iOS.a"
35+
BlueprintName = "AppAuth-iOS"
36+
ReferencedContainer = "container:AppAuth.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "340E737B1C5D819B0076B1F6"
46-
BuildableName = "libAppAuth-iOS.a"
47-
BlueprintName = "AppAuth-iOS"
48-
ReferencedContainer = "container:AppAuth.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:AppAuth.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-tvOS.xcscheme

+9-13
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "341E707D1DE18744004353C1"
34+
BuildableName = "libAppAuth-tvOS.a"
35+
BlueprintName = "AppAuth-tvOS"
36+
ReferencedContainer = "container:AppAuth.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "341E707D1DE18744004353C1"
46-
BuildableName = "libAppAuth-tvOS.a"
47-
BlueprintName = "AppAuth-tvOS"
48-
ReferencedContainer = "container:AppAuth.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:AppAuth.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

Source/AppAuthCore/OIDAuthorizationResponse.h

+11
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ NS_ASSUME_NONNULL_BEGIN
120120
token.
121121
@see https://tools.ietf.org/html/rfc6749#section-4.1.3
122122
*/
123+
- (nullable OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
124+
(nullable NSDictionary<NSString *, NSString *> *)additionalParameters;
125+
126+
/*! @brief Creates a token request suitable for exchanging an authorization code for an access
127+
token.
128+
@param additionalParameters Additional parameters for the token request.
129+
@param additionalHeaders Additional headers for the token request.
130+
@return A @c OIDTokenRequest suitable for exchanging an authorization code for an access
131+
token.
132+
@see https://tools.ietf.org/html/rfc6749#section-4.1.3
133+
*/
123134
- (nullable OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
124135
(nullable NSDictionary<NSString *, NSString *> *)additionalParameters
125136
additionalHeaders:

Source/AppAuthCore/OIDAuthorizationResponse.m

+6
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ - (OIDTokenRequest *)tokenExchangeRequest {
187187
return [self tokenExchangeRequestWithAdditionalParameters:nil additionalHeaders:nil];
188188
}
189189

190+
- (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
191+
(NSDictionary<NSString *, NSString *> *)additionalParameters {
192+
return [self tokenExchangeRequestWithAdditionalParameters:additionalParameters
193+
additionalHeaders:nil];
194+
}
195+
190196
- (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
191197
(NSDictionary<NSString *, NSString *> *)additionalParameters
192198
additionalHeaders:

0 commit comments

Comments
 (0)