- In the
Example-tvOSfolder, run the following command to install the AppAuth pod with the TV subspec.
pod install
- Open the
Example-tvOS.xcworkspaceworkspace.
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
kClientIDwith your new client ID. - Update
kClientSecretwith your client ID's secret, or set to""if not using.
If you are choosing to automatically discover endpoints, also:
- Update
kIssuerwith the issuer URL. - Set
shouldDiscoverEndpointstoYES
If you are choosing to manually specify endpoints, also:
- Set
shouldDiscoverEndpointstoNO - Update
kDeviceAuthorizationEndpointwith the device authorization endpoint. - Update
kTokenEndpointwith the token endpoint. - Update
kUserInfoEndpointwith the token endpoint.
Now your example should be ready to run.