Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microsoft: add useOnPremSamAccountName to get preferred_username #1623

Closed
wants to merge 3 commits into from

Commits on Jan 13, 2020

  1. Microsoft Azure AD: Get on premises user id as preferred_username

    Add new option `useOnPremSamAccountName` to the microsoft connector,
    which will request `onPremisesSamAccountName` from microsoft graph
    and populate that value as `preferred_username`:
    
    After enabling `useOnPremSamAccountName`:
    
        connectors:
        - type: microsoft
          id: microsoft
          name: Microsoft
          config:
            clientID: $MICROSOFT_APPLICATION_ID
            clientSecret: $MICROSOFT_CLIENT_SECRET
            redirectURI: https://dex/dex/callback
            tenant: 1f163eff-f722-47fb-9562-20d74025a9f2
            useOnPremSamAccountName: true
    
        "sub": "khulsdfkhjsd",
        "preferred_username": "j.doe",
    
    Fixes dexidp#1618
    chlunde committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    991b82b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f3c2cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fec61e View commit details
    Browse the repository at this point in the history