Hi,
i try to enable github access control via an API call.
To understand which calls needs to be done, i inspect the browser.
I’ve seen that one first call is a POST to /v1/githubconfig
with this body :
{"accessMode":"unrestricted","id":null,"type":"githubconfig","allowedIdentities":[],"clientId":"myclientid","clientSecret":"myclientsecret","enabled":false,"hostname":null,"name":"githubconfig","scheme":"https://"}
But when i execute this request, it returns a 403 response with this message:
InvalidCSRFToken : CSRF header and cookie do not match
Is it possible to configure the rancher server from the start only via API calls?
best regards,
Charles.