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

Oauth2 for Azure not able to update sections resource.userInfoUri and userInfoMapping #190

Open
j771 opened this issue Oct 23, 2020 · 1 comment

Comments

@j771
Copy link

j771 commented Oct 23, 2020

I am trying to update the sections resource.userInfoUri and userInfoMapping in my oauth Azure config.
The format is just like the docs specify.
https://docs.armory.io/docs/installation/operator-reference/security/#oauth2
https://spinnaker.io/setup/security/authentication/oauth/azure/#hal-config

  oauth2:
    client:
      accessTokenUri: 
      clientAuthenticationScheme:
      clientId: 
      clientSecret:
      preEstablishedRedirectUri: 
      scope:
      userAuthorizationUri:
    enabled:
    provider:
    resource:
      userInfoUri:
    userInfoMapping:
      email:
      firstName:
      lastName:
      userName

All other sections seem to be customizable but when I change the resource.userInfoUri and userInfoMapping sections they do not update in the gate.yml

@thdghgns
Copy link

@j771
I had the same problem.
in my case, i tried with provider 'other'. then it worked

hal config security authn oauth2 edit --provider azure --client-id "$client-id" --client-secret "$client-secret"
hal config security authn oauth2 edit --pre-established-redirect-uri "$gate/login"
hal config security authn oauth2 edit --provider other
hal config security authn oauth2 edit --user-info-mapping-username userPrincipalName
hal config security authn oauth2 enable
hal config security authz enable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants