authz: use URN to identify provider to fetch permissions instead of ServiceID
Created by: unknwon
On high-level, this PR add a new method URN() string
to the authz.Provider
interface.
URN is what we used to identify the source of repositories, i.e. which external service is responsible for listing a repository.
Notes
- Please see #11023 for a detailed problem statement.
- This PR is not a complete solution and only implemented for GitHub for dev testing purpose.
- Please review by commits and give feedback!
Fixes #11023