Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-02-11 Thread Ishara Cooray
We will not allow deleting global scopes if they are attached to any resource. Btw, Global scopes cannot be used across tenants, global scopes can be defined locally to a tenant. When a global scope is updated (role binding updates), we will provide a warning about the need to republish the APIs. B

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-02-04 Thread Dushani Wellappili
Hi Ishara, We will not allow deleting global scopes if they are attached to any resource. Btw, Global scopes cannot be used across tenants, global scopes can be defined locally to a tenant. When a global scope is updated (role binding updates), we will provide a warning about the need to republish

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-02-04 Thread Ishara Cooray
Hi Dushani, If a global scope is modified or deleted it will affect all the APIs that it is being used. How do we handle this? There should be a way to identify the APIs that the scope is associated with. And when deleting we need to make sure that none of the APIs using the scope. When modifying

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-26 Thread Dushani Wellappili
Hi Rushmin, On Fri, Jan 24, 2020 at 5:37 PM Rushmin Fernando wrote: > > > On Mon, Jan 20, 2020 at 12:29 PM Amila De Silva wrote: > >> A couple of other points needing the opinion of a wider audience are; >> >> 1. Whether only to support Global scopes in future releases and convert >> all per A

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-24 Thread Rushmin Fernando
On Mon, Jan 20, 2020 at 12:29 PM Amila De Silva wrote: > A couple of other points needing the opinion of a wider audience are; > > 1. Whether only to support Global scopes in future releases and convert > all per API scopes to Global scopes. > > One of the points raised during an internal discuss

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-20 Thread Sanjeewa Malalgoda
On Mon, Jan 20, 2020 at 4:51 PM Harsha Kumara wrote: > > > On Mon, Jan 20, 2020 at 12:20 PM Amila De Silva wrote: > >> Hi Sanjeewa, >> How about having a separate permission for creating/managing Scopes and >> assigning it to a selected few API Creators? If the Global scope creation >> becomes a

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-20 Thread Harsha Kumara
On Mon, Jan 20, 2020 at 12:20 PM Amila De Silva wrote: > Hi Sanjeewa, > How about having a separate permission for creating/managing Scopes and > assigning it to a selected few API Creators? If the Global scope creation > becomes a simple process may be we can have it under Publisher UI or if it

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-20 Thread Bhathiya Jayasekara
On Mon, Jan 20, 2020 at 2:13 PM Dushani Wellappili wrote: > Hi Sanjeewa/Amila, > > +1 for adding permissions to view/manage the global scopes, so that only > privileged users (admins) can create/update scopes. The reason to move the > global scope management view to the Publisher portal is to all

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-20 Thread Dushani Wellappili
Hi Sanjeewa/Amila, +1 for adding permissions to view/manage the global scopes, so that only privileged users (admins) can create/update scopes. The reason to move the global scope management view to the Publisher portal is to allow API developers to check what are the scopes available and view the

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-19 Thread Amila De Silva
A couple of other points needing the opinion of a wider audience are; 1. Whether only to support Global scopes in future releases and convert all per API scopes to Global scopes. One of the points raised during an internal discussion was that, per API scopes will get obsolete with the introductio

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-19 Thread Amila De Silva
Hi Sanjeewa, How about having a separate permission for creating/managing Scopes and assigning it to a selected few API Creators? If the Global scope creation becomes a simple process may be we can have it under Publisher UI or if it involves retaining some of the functionality Per-API-Scopes had (

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-19 Thread Sanjeewa Malalgoda
Hi All, Creating global scope is always admin task or should we let publishers to initiate creating global scopes. Asking this because most of the time its developers who create scopes and sometimes they may think this scope can use widely. Isn't it a case we should consider. Also need to think abo

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-19 Thread Dushani Wellappili
Hi all, According to the recent discussions we've had, we have modified the initial DB design as follows. - Remove the FK constraint on SCOPE_ID, as it would be easy when decoupling API-M from IS components in the future. - Add a UUID for Global Scopes to support REST APIs AM_GLOBAL_SCO

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-19 Thread Dushani Wellappili
Hi all, This is to provide an example use-case of supporting global scopes when an application is using multiple APIs and it supports functionalities for users with different types of permissions. There are two sets of users where the one set will only have view-only permissions and another set wi

Re: [Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-16 Thread Dushani Wellappili
The delete operation should be corrected as follows. #- # Delete the global scope #- delete: security: - OAuth2Security: - apim:global_scope_manage summa

[Architecture] [APIM] Support Global OAuth2 Scopes and Attaching Multiple Scopes per API Resource

2020-01-16 Thread Dushani Wellappili
Hi all, - Global OAuth2 Scopes are useful when an organization/department (a tenant) has a need to globally control the fined grained access control permissions of all the published APIs, from a central place. - It reduces the rework of creating the same scope with duplicate access