From 62f2304937df7941770056912ca6b310209b51f9 Mon Sep 17 00:00:00 2001 From: Matthew Mathias Date: Fri, 8 Mar 2024 15:57:55 -0800 Subject: [PATCH] Add back missing method to OIDAuthorizationResponse --- .../xcschemes/AppAuth-iOS.xcscheme | 22 ++++++++----------- .../xcschemes/AppAuth-tvOS.xcscheme | 22 ++++++++----------- Source/AppAuthCore/OIDAuthorizationResponse.h | 11 ++++++++++ Source/AppAuthCore/OIDAuthorizationResponse.m | 6 +++++ 4 files changed, 35 insertions(+), 26 deletions(-) diff --git a/AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme b/AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme index 5c03fe8e1..d2886e5ea 100644 --- a/AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme +++ b/AppAuth.xcodeproj/xcshareddata/xcschemes/AppAuth-iOS.xcscheme @@ -27,6 +27,15 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + + + + @@ -39,17 +48,6 @@ - - - - - - - - + + + + @@ -39,17 +48,6 @@ - - - - - - - - *)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 *)additionalParameters additionalHeaders: diff --git a/Source/AppAuthCore/OIDAuthorizationResponse.m b/Source/AppAuthCore/OIDAuthorizationResponse.m index 5c998a966..957f81d3a 100644 --- a/Source/AppAuthCore/OIDAuthorizationResponse.m +++ b/Source/AppAuthCore/OIDAuthorizationResponse.m @@ -187,6 +187,12 @@ - (OIDTokenRequest *)tokenExchangeRequest { return [self tokenExchangeRequestWithAdditionalParameters:nil additionalHeaders:nil]; } +- (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters: + (NSDictionary *)additionalParameters { + return [self tokenExchangeRequestWithAdditionalParameters:additionalParameters + additionalHeaders:nil]; +} + - (OIDTokenRequest *)tokenExchangeRequestWithAdditionalParameters: (NSDictionary *)additionalParameters additionalHeaders: