Skip to content

Commit

Permalink
OpenID Connect RP Conformance Tests for Code Flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDenniss committed Apr 20, 2018
1 parent af596be commit 463b66a
Show file tree
Hide file tree
Showing 3 changed files with 622 additions and 0 deletions.
16 changes: 16 additions & 0 deletions AppAuth.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@
34A663321E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A663331E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A663341E871DD40060B664 /* OIDIDToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A663271E871DD40060B664 /* OIDIDToken.m */; };
34A6638B1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638C1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638D1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638E1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A6638F1E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34A663901E8865090060B664 /* OIDRPProfileCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 34A6638A1E8865090060B664 /* OIDRPProfileCode.m */; };
34D5EC451E6D1AD900814354 /* OIDSwiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */; };
34FEA6AE1DB6E083005C9212 /* OIDLoopbackHTTPServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 34FEA6AC1DB6E083005C9212 /* OIDLoopbackHTTPServer.h */; };
34FEA6AF1DB6E083005C9212 /* OIDLoopbackHTTPServer.m in Sources */ = {isa = PBXBuildFile; fileRef = 34FEA6AD1DB6E083005C9212 /* OIDLoopbackHTTPServer.m */; };
Expand Down Expand Up @@ -557,6 +563,8 @@
347423F61E7F4B5600D3E6D6 /* libAppAuth-watchOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libAppAuth-watchOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
34A663261E871DD40060B664 /* OIDIDToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OIDIDToken.h; sourceTree = "<group>"; };
34A663271E871DD40060B664 /* OIDIDToken.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OIDIDToken.m; sourceTree = "<group>"; };
34A6638A1E8865090060B664 /* OIDRPProfileCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OIDRPProfileCode.m; sourceTree = "<group>"; };
34A663911E886AED0060B664 /* OIDRPProfileCode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OIDRPProfileCode.h; sourceTree = "<group>"; };
34D5EC431E6D1AD900814354 /* OIDAppAuthTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OIDAppAuthTests-Bridging-Header.h"; sourceTree = "<group>"; };
34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OIDSwiftTests.swift; sourceTree = "<group>"; };
34FEA6AC1DB6E083005C9212 /* OIDLoopbackHTTPServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OIDLoopbackHTTPServer.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -824,6 +832,8 @@
60140F821DE43BAF00DA0DC3 /* OIDRegistrationRequestTests.m */,
60140F841DE43C8C00DA0DC3 /* OIDRegistrationResponseTests.h */,
60140F851DE43CC700DA0DC3 /* OIDRegistrationResponseTests.m */,
34A663911E886AED0060B664 /* OIDRPProfileCode.h */,
34A6638A1E8865090060B664 /* OIDRPProfileCode.m */,
34D5EC441E6D1AD900814354 /* OIDSwiftTests.swift */,
34D5EC431E6D1AD900814354 /* OIDAppAuthTests-Bridging-Header.h */,
0396974C1FA827AD003D1FB2 /* OIDURLSessionProviderTests.m */,
Expand Down Expand Up @@ -1504,6 +1514,7 @@
3417421E1C5D82D3000EF209 /* OIDServiceDiscoveryTests.m in Sources */,
3417421F1C5D82D3000EF209 /* OIDTokenRequestTests.m in Sources */,
341742181C5D82D3000EF209 /* OIDAuthorizationResponseTests.m in Sources */,
34A6638B1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341742171C5D82D3000EF209 /* OIDAuthorizationRequestTests.m in Sources */,
0396974D1FA827AD003D1FB2 /* OIDURLSessionProviderTests.m in Sources */,
3417421A1C5D82D3000EF209 /* OIDGrantTypesTests.m in Sources */,
Expand All @@ -1529,6 +1540,7 @@
341AA50D1E7F3A9B00FCA5C6 /* OIDTokenRequestTests.m in Sources */,
341AA5091E7F3A9B00FCA5C6 /* OIDResponseTypesTests.m in Sources */,
341AA4D91E7F393500FCA5C6 /* OIDAuthorizationRequestTests.m in Sources */,
34A6638C1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341AA5101E7F3A9B00FCA5C6 /* OIDRegistrationRequestTests.m in Sources */,
341AA5111E7F3A9B00FCA5C6 /* OIDRegistrationResponseTests.m in Sources */,
341AA5081E7F3A9B00FCA5C6 /* OIDGrantTypesTests.m in Sources */,
Expand All @@ -1549,6 +1561,7 @@
341AA5001E7F3A9400FCA5C6 /* OIDTokenRequestTests.m in Sources */,
341AA4FC1E7F3A9400FCA5C6 /* OIDResponseTypesTests.m in Sources */,
341AA4F81E7F3A3000FCA5C6 /* OIDAuthorizationRequestTests.m in Sources */,
34A6638D1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
341AA5031E7F3A9400FCA5C6 /* OIDRegistrationRequestTests.m in Sources */,
341AA5041E7F3A9400FCA5C6 /* OIDRegistrationResponseTests.m in Sources */,
341AA4FB1E7F3A9400FCA5C6 /* OIDGrantTypesTests.m in Sources */,
Expand Down Expand Up @@ -1634,6 +1647,7 @@
343AAA7F1E8346B400F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAA731E8346B400F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAA761E8346B400F9D36E /* OIDGrantTypesTests.m in Sources */,
34A6638E1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAA741E8346B400F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -1713,6 +1727,7 @@
343AAB8B1E8349CE00F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAB7F1E8349CE00F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAB821E8349CE00F9D36E /* OIDGrantTypesTests.m in Sources */,
34A6638F1E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAB801E8349CE00F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -1768,6 +1783,7 @@
343AAB991E8349CF00F9D36E /* OIDRegistrationRequestTests.m in Sources */,
343AAB8D1E8349CF00F9D36E /* OIDAuthorizationRequestTests.m in Sources */,
343AAB901E8349CF00F9D36E /* OIDGrantTypesTests.m in Sources */,
34A663901E8865090060B664 /* OIDRPProfileCode.m in Sources */,
343AAB8E1E8349CF00F9D36E /* OIDAuthorizationResponseTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
40 changes: 40 additions & 0 deletions UnitTests/OIDRPProfileCode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*! @file OIDRPProfileCode.h
@brief AppAuth iOS SDK
@copyright
Copyright 2017 Google Inc. All Rights Reserved.
@copydetails
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
http://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.
*/

#import <XCTest/XCTest.h>

#import "OIDAuthorizationUICoordinator.h"

NS_ASSUME_NONNULL_BEGIN

@interface OIDAuthorizationUICoordinatorNonInteractive : NSObject <OIDAuthorizationUICoordinator> {
// private variables
NSURLSession *_urlSession;
__weak id<OIDAuthorizationFlowSession> _session;
}
@end

@interface OIDRPProfileCode : XCTestCase {
// private variables
OIDAuthorizationUICoordinatorNonInteractive *_coordinator;
FILE * _logFile;
}

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit 463b66a

Please sign in to comment.