I found the solution, as the dotnetcasclient is not based from OAuthClientBase, the authentication type is not registered in DnnAuthorizeAttribute and the access to the Web API is refused by :
// if the attribute opted in explicitly for specific authentication types, then // use it; otherwise use the defaults according to settings in the web.config. var currentAuthType = (identity.AuthenticationType ?? string.Empty).Trim(); if (currentAuthType.Length > 0) { if (this._authTypesSplit.Any()) { return this._authTypesSplit.Contains(currentAuthType); }
return DefaultAuthTypes.Contains(currentAuthType); }
My solution was to rename my authentication type "CAS Apereo" in "Forms" and all access is now authorized.
Philippe
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.