svelte-adapter-azure-swa
svelte-adapter-azure-swa copied to clipboard
allow overriding default allowedRoles
If an app needs login a requirement the current adapter could not support such scenarios. This PR address this by allowing the user to override the rules. By default nothing changes and everything is allowed by using the anonymous role.
This PR may be superseded by #66, which will allow for greater customization of the config.
Sorry for the late response, I've had a look into #66. Is the plan to superseed this or would you rather merge this now and have the details of #66 change it later on? If we would like to get this merged now I'm happy to address the requested changes.
Hey - yeah, I think #66 will be the more robust solution, since it will allow applying allowedRoles to individual routes, and it would be weird to have a separate config option for a global allowedRoles. It fell off my radar a few months ago, and I'm hoping to get back to it soon (definitely before v1 of this adapter is released).
I'll leave this PR open until #66 is merged in case I change my mind, but let's hold off on making any more changes for now. Thanks!
Thaks for the response, looking forward to the changes of #66. Let me know if I can help with anything to get that PR merged.