Skip to content

Commit

Permalink
Add back missing method to OIDAuthorizationResponse (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmathias authored Mar 9, 2024
1 parent 4625d9d commit 4b6948f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 26 deletions.
22 changes: 9 additions & 13 deletions AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "340E737B1C5D819B0076B1F6"
BuildableName = "libAppAuth-iOS.a"
BlueprintName = "AppAuth-iOS"
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "340E737B1C5D819B0076B1F6"
BuildableName = "libAppAuth-iOS.a"
BlueprintName = "AppAuth-iOS"
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
22 changes: 9 additions & 13 deletions AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-tvOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "341E707D1DE18744004353C1"
BuildableName = "libAppAuth-tvOS.a"
BlueprintName = "AppAuth-tvOS"
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "341E707D1DE18744004353C1"
BuildableName = "libAppAuth-tvOS.a"
BlueprintName = "AppAuth-tvOS"
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:AppAuth.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
11 changes: 11 additions & 0 deletions Source/AppAuthCore/OIDAuthorizationResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ NS_ASSUME_NONNULL_BEGIN
token.
@see https://tools.ietf.org/html/rfc6749#section-4.1.3
*/
- (nullable OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
(nullable NSDictionary<NSString *, NSString *> *)additionalParameters;

/*! @brief Creates a token request suitable for exchanging an authorization code for an access
token.
@param additionalParameters Additional parameters for the token request.
@param additionalHeaders Additional headers for the token request.
@return A @c OIDTokenRequest suitable for exchanging an authorization code for an access
token.
@see https://tools.ietf.org/html/rfc6749#section-4.1.3
*/
- (nullable OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
(nullable NSDictionary<NSString *, NSString *> *)additionalParameters
additionalHeaders:
Expand Down
6 changes: 6 additions & 0 deletions Source/AppAuthCore/OIDAuthorizationResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ - (OIDTokenRequest *)tokenExchangeRequest {
return [self tokenExchangeRequestWithAdditionalParameters:nil additionalHeaders:nil];
}

- (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
(NSDictionary<NSString *, NSString *> *)additionalParameters {
return [self tokenExchangeRequestWithAdditionalParameters:additionalParameters
additionalHeaders:nil];
}

- (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters:
(NSDictionary<NSString *, NSString *> *)additionalParameters
additionalHeaders:
Expand Down

0 comments on commit 4b6948f

Please sign in to comment.