Skip to content

Commit

Permalink
Rollback the EnterpriseUserAgent target. (openid#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
petea authored Mar 18, 2022
1 parent ac3e1e0 commit 6f48321
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 464 deletions.
7 changes: 0 additions & 7 deletions AppAuth.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ It follows the OAuth 2.0 for Native Apps best current practice
externalUserAgent.osx.weak_frameworks = "AuthenticationServices"
end

s.subspec 'EnterpriseUserAgent' do |enterpriseUserAgent|
enterpriseUserAgent.dependency 'AppAuth/Core'

enterpriseUserAgent.ios.source_files = "Source/AppAuthEnterpriseUserAgent.h", "Source/AppAuthEnterpriseUserAgent/iOS/**/*.{h,m}"
enterpriseUserAgent.ios.deployment_target = "7.0"
end

# Subspec for the full AppAuth library, including platform-dependant external user agents.
s.subspec 'TV' do |tv|
tv.source_files = "Source/AppAuthTV.h", "Source/AppAuthTV/*.{h,m}"
Expand Down
264 changes: 14 additions & 250 deletions AppAuth.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

13 changes: 0 additions & 13 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ let package = Package(
.library(
name: "AppAuth",
targets: ["AppAuth"]),
.library(
name: "AppAuthEnterpriseUserAgent",
targets: ["AppAuthEnterpriseUserAgent"]),
.library(
name: "AppAuthTV",
targets: ["AppAuthTV"])
Expand All @@ -61,16 +58,6 @@ let package = Package(
.headerSearchPath("macOS/LoopbackHTTPServer"),
]
),
.target(
name: "AppAuthEnterpriseUserAgent",
dependencies: ["AppAuthCore"],
path: "Source/AppAuthEnterpriseUserAgent",
sources: ["iOS"],
publicHeadersPath: "",
cSettings: [
.headerSearchPath("iOS"),
]
),
.target(
name: "AppAuthTV",
dependencies: ["AppAuthCore"],
Expand Down
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,24 +631,6 @@ try, or use as a reference for your own implementation. One of them,
enables you to use a different browser for authentication, like Chrome for iOS
or Firefox for iOS.

##### CocoaPods
Include the `EnterpriseUserAgent` subspec alongside any pods/subspecs you were already using, e.g.:
```
pod 'AppAuth'
pod 'AppAuth/EnterpriseUserAgent'
```

Make sure to import `AppAuthEnterpriseUserAgent.h` in addition to `AppAuth.h` if you are using the full `AppAuth` functionality.

##### Carthage
Use the `AppAuthEnterpriseUserAgent` framework, which includes all the headers of the `AppAuth` framework.
Make sure to import `<AppAuthEnterpriseUserAgent/AppAuthEnterpriseUserAgent.h>`. This includes all the files included by AppAuth/AppAuthCore, so only this import is necessary.

##### Swift Package Manager
Include the `AppAuthEnterpriseUserAgent` target alongside any targets you were already using.

Make sure to import `AppAuthEnterpriseUserAgent.h` in addition to `AppAuth.h` if you are using the full `AppAuth` functionality.

Here's how to configure AppAuth to use a custom browser using the
`OIDExternalUserAgentIOSCustomBrowser` user agent:

Expand All @@ -669,9 +651,6 @@ This is required so that AppAuth can test for the browser and open the app store
if it's not installed (the default behavior of this user-agent). You only need
to include the URL scheme of the actual browser you intend to use.

Next, make sure to import the correct header file.
If using CocoaPods/Swift Package manager, make sure to import AppAuthEnterpriseUserAgent alongside AppAuth/AppAuthCore.

<sub>Objective-C</sub>
```objc
// performs authentication request
Expand Down
1 change: 1 addition & 0 deletions Source/AppAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#import "OIDAuthState+IOS.h"
#import "OIDAuthorizationService+IOS.h"
#import "OIDExternalUserAgentIOS.h"
#import "OIDExternalUserAgentIOSCustomBrowser.h"
#import "OIDExternalUserAgentCatalyst.h"
#elif TARGET_OS_OSX
#import "OIDAuthState+Mac.h"
Expand Down
21 changes: 0 additions & 21 deletions Source/AppAuthEnterpriseUserAgent.h

This file was deleted.

59 changes: 0 additions & 59 deletions Source/EnterpriseUserAgentFramework/AppAuthEnterpriseUserAgent.h

This file was deleted.

26 changes: 0 additions & 26 deletions Source/EnterpriseUserAgentFramework/Info.plist

This file was deleted.

1 change: 1 addition & 0 deletions Source/Framework/AppAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ FOUNDATION_EXPORT const unsigned char AppAuthVersionString[];
#import <AppAuth/OIDAuthState+IOS.h>
#import <AppAuth/OIDAuthorizationService+IOS.h>
#import <AppAuth/OIDExternalUserAgentIOS.h>
#import <AppAuth/OIDExternalUserAgentIOSCustomBrowser.h>
#import "AppAuth/OIDExternalUserAgentCatalyst.h"
#elif TARGET_OS_OSX
#import <AppAuth/OIDAuthState+Mac.h>
Expand Down

0 comments on commit 6f48321

Please sign in to comment.