Open maxlegault opened 3 years ago
I'd be glad to make a contribution, from what I see we'd need to check not only for "oidc" but also "github" on this line here to get the claim https://github.com/mrparkers/terraform-provider-keycloak/blob/18bdbd60144feeea0c1637560743d3c0347f8027/provider/resource_keycloak_attribute_importer_identity_provider_mapper.go#L69
I'm guessing we'd probably want to add support for all other social providers that are using OIDC behind the scenes, though I'm not sure if it's all the social identity providers that should be using this mechanism.
I think checking for "github"
there is fine for now. I usually add support for this on a case by case basis since it's hard to test some of these without having a bit more knowledge about the provider itself. I should be able to test the GitHub one just fine though.
I'd be willing to merge a PR that makes this change if you're willing to submit it 🚀
@mrparkers I just created PR #472 to address this issue.
I'm trying to replicate an Identity Provider Mapper configuration I have where I import the
avatar_url
field from mygithub
idp, but it seems like onlysaml
andoidc
are currently supported as provider ids for attribute imports. It would be very useful for me to be able to configure attribute importers for the non-oidc social providers.Here's the resource I'm trying to create:
The plan outputs the expected info:
But then when applying, I get this error message: