Info |
---|
Login using OAuth2.0 is available since MediaHaven version 18.4. It is the preferred way of authenticating for new integrations. |
...
2. Obtaining a token
Client Credentials Grant a.k.a. interactive flow.
Info |
---|
If your app offers a UI, you are required to use this flow |
...
Below is an example of the request with cURL.
|
If all goes well, you'll receive a status 200 with the following JSON:
|
Warning |
---|
It's also possible a statuscode != 200 is returned. You must take appropriate action. |
...
Code Block |
---|
curl -X GET https://integration.mediahaven.com/mediahaven-rest-api/resourcesv2/mediarecords -H "Authorization: bearer WySMF6lvPBsuV4X2tImsXe14zjzb1GEC" |
...
Note |
---|
When logging in multiple times, it must always be done with the same method as the first time otherwise you will get unauthorized when on the next attempt with a different method. If you wish to switch to a different method the user must be deleted first in MediaHaven. |
Flow / Method | SAML | Active Directory | MediaHaven |
---|---|---|---|
| | | |
|