locked
ADFs 4 , Angualr 6 and ADAL RRS feed

  • Question

  • 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

    Tuesday, September 4, 2018 2:51 PM

All replies

  • https://medium.com/the-new-control-plane/the-mystery-of-the-missing-adfs-jwt-claims-7658d9cdeaac

    Monday, September 10, 2018 8:02 PM