API Integration
To be able to ask the API which content channels a member should have access to, there needs to be an OIDC integration with Subrite in place. The OIDC flow will provide an accesstoken to be submitted in the API requests, to execute them on the behalf of the logged in users.
Step 1
Use the info-with-content-access
API call to get information about the logged in member, including which content channels the member should have access to.
- Method:
GET
- Route:
{baseUrl}/api/v1/members/profile/info-with-content-access
- Authorization: Bearer token (using the user's JWT accesstoken)
In the response you will find the content channels:
{
...
"contentChannels": [
{
"id": 1,
"name": "…",
"description": "…",
...
}
]
...
}
More details on this API can be found here: Get logged in member info with content access