Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.68 KB

README.md

File metadata and controls

64 lines (40 loc) · 1.68 KB

Example Project

Setup & Open the Project

  1. In the Example-tvOS folder, run the following command to install the AppAuth pod with the TV subspec.
pod install
  1. Open the Example-tvOS.xcworkspace workspace.
open Example-tvOS.xcworkspace

This workspace is configured to include AppAuth via CocoaPods. You can also include AppAuthTV using Carthage or Swift Package Manager, please see the main README for instructions.

Configuration

The example doesn't work out of the box; you need to configure it with your own client and IdP details.

Information You'll Need

  • Client ID
  • Client Secret (optional)

If you are choosing to automatically discover endpoints:

  • Issuer URL

If you are choosing to manually specify endpoints:

  • Device Authorization Endpoint
  • Token Endpoint
  • User Info Endpoint

How to get this information varies by IdP, but we have instructions for some OpenID Certified providers.

Configure the Example

In the file AppAuthTVExampleViewController.m

  1. Update kClientID with your new client ID.
  2. Update kClientSecret with your client ID's secret, or set to "" if not using.

If you are choosing to automatically discover endpoints, also:

  1. Update kIssuer with the issuer URL.
  2. Set shouldDiscoverEndpoints to YES

If you are choosing to manually specify endpoints, also:

  1. Set shouldDiscoverEndpoints to NO
  2. Update kDeviceAuthorizationEndpoint with the device authorization endpoint.
  3. Update kTokenEndpoint with the token endpoint.
  4. Update kUserInfoEndpoint with the token endpoint.

Running the Example

Now your example should be ready to run.