universal-dashboard icon indicating copy to clipboard operation
universal-dashboard copied to clipboard

REST API OAuth Support

Open tiwood opened this issue 5 years ago • 1 comments

We want to use access_tokens obtained from Azure AD with our Universal Dashboard REST API.

Currently the configuration yields the following error message:

$AuthenticationMethod = New-UDAuthenticationMethod -ClientId '123' -Instance "https://login.microsoftonline.com" -Domain "mytenant.onmicrosoft.com" -TenantId '123'


Start-UDRestApi : REST APIs do not support OAuth.

Describe the solution you'd like

I want to use a access_token obtained from Azure AD (specifically for my REST API) to authenticate against my API.

Example JWT from Azure AD (relevant bits):

{
  "aud": "https://my-dashboard-api.foo.bar",
  "iss": "https://sts.windows.net/123/",
  "appid": "123",
  "roles": [
    "Global.ReadWriteAll"
  ],
  "scp": "user_impersonation",
  "tid": "123",
  "unique_name": "johndoe",
  "upn": "[email protected]",
  "ver": "1.0"
}

Additionally it should be possible to use claims based authentication with REST API Endpoints. See here

tiwood avatar Feb 11 '20 10:02 tiwood

Some news about this issue ?

djabou78 avatar Nov 07 '20 07:11 djabou78