go-authcrunch icon indicating copy to clipboard operation
go-authcrunch copied to clipboard

Allow adding fields from user info

Open MartinWallgren opened this issue 1 year ago • 4 comments

This change makes it possible to extract extra fields form user info to the generated token.

For example, to have upn from the Azure token be added to the final JWT, we can add the below to the oauth config section.

extract upn from userinfo

This PR is an attempt to solve this https://github.com/greenpau/caddy-security/issues/190

MartinWallgren avatar Apr 19 '23 11:04 MartinWallgren

@greenpau any feedback on this? This is a real problem for most that are using AzureAD. I don't mind implementing something else if you don't agree with this solution.

MartinWallgren avatar Jul 11 '23 06:07 MartinWallgren

This is a real problem for most that are using AzureAD.

@MartinWallgren , I do not have time to look at this at the moment. The idea sounds good. Just need to find some time to do maintenance of the plugin. Please ping me again if it is not merged by the end of august.

greenpau avatar Jul 14 '23 17:07 greenpau

thank you for the contribution. What is the effect of this? Is it possible to only add "select" fields as opposed to everything?

@MartinWallgren , please see ^

greenpau avatar Mar 10 '24 04:03 greenpau

hi, any plan on adding this to a release?

raffaeleguidi avatar Apr 16 '24 10:04 raffaeleguidi