I also asked this in Azure AD forum ( i think i will be told to asked in ADFs forums :) )
Hi
I m using this ADAL library (https://github.com/benbaran/adal-angular4) for my app for my on prem ADSFS and login works and i am able to get token. But i want to get back custom claim like email address , first name , last name . So as per ADFS 2016 doc
i need to have resource parameter. So here is my config object
config: {
instance: 'my adfs server https link ',
tenant: 'adfs',
clientId: 'my_client_id',
resource : 'myresource/',
redirectUri: window.location.origin ,
//extraQueryParameter : 'resource=myresource/',
extraQueryParameter : 'use_windows_client_authentication=true',
postLogoutRedirectUri : 'myurl',
endpoints: {
'my adfs server https link': '00000000-0000-0000-0000-000000000000'
}
so when i click login in
my app the URL constructed does'nt have ?resource=myresource
upon logout its not redirecting to my postLogoutRedirectUri configured
when i uncomment extraQueryParameter line &resource=myresource shows up
but jwt token doesn't have my scopes/claims.
so how do i get my claims ?
Thanks