- In the
Example-tvOS
folder, run the following command to install the AppAuth pod with the TV subspec.
pod install
- 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.
The example doesn't work out of the box; you need to configure it with your own client and IdP details.
- 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.
- Update
kClientID
with your new client ID. - Update
kClientSecret
with your client ID's secret, or set to""
if not using.
If you are choosing to automatically discover endpoints, also:
- Update
kIssuer
with the issuer URL. - Set
shouldDiscoverEndpoints
toYES
If you are choosing to manually specify endpoints, also:
- Set
shouldDiscoverEndpoints
toNO
- Update
kDeviceAuthorizationEndpoint
with the device authorization endpoint. - Update
kTokenEndpoint
with the token endpoint. - Update
kUserInfoEndpoint
with the token endpoint.
Now your example should be ready to run.