{
"aud": "xxxxx",
"iss": "xxxxxx",
"iat": 1552473629,
"nbf": 1552473629,
"exp": 1552477529,
"aio": "xxxxxxx",
"groups": [
"928636f4-fd0d-4149-978e-a6fb68bb19de"
],
"name": "xxxx",
"nonce": "456",
"oid": "xxxxxx",
"preferred_username": "xxxxxxx",
"sub": "xxxxx",
"tid": "xxxxxxxx",
"upn": "xxxxxxxxx",
"uti": "xxxxxx",
"ver": "2.0"
}Based on the items in the "groups" field, I want to grant additional policies to the user who has logged in.
Is it supposed to be an automatic mapping between groups in the OIDC token, and groups in Vault?
(I can't make it work...)
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/9ed3b640-64b3-45c2-b9fb-2b08ea3eab97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{
"policies": [
"xxxx",
"xxxxx"
],
"allowed_redirect_uris": [
"http://localhost:8250/oidc/callback"
],
"bound_subject": "xxxxxxxx",
"bound_audiences": "xxxxxxxx",
"user_claim": "upn",
"groups_claim": "groups",
"bound_claims": {
},
"claim_mappings": {
"upn": "upn",
"name": "name",
"xxxxx": "xxxxx"
}
}
{
"name": "928636f4-fd0d-4149-978e-a6fb68bb19de",
"type": "external",
"metadata": {
"hello": "world"
},
"policies": ["foobar", "grouppolicy2"]
}
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAORe8GHxXoKGcdARudgaDz-gf_o4%2BfG30DPeN9_2BLdBFFq0ng%40mail.gmail.com.
It looks a little bit different since it’s OIDC:
[DEBUG] identity: creating a new entity: alias="id:"1fdf2d84-5f87-4789-af3e-6cc60590419f" canonical_id:"603b75a3-9ff5-22d9-2159-f500df30f0f2" mount_type:"oidc" mount_accessor:"auth_oidc_8c65cc06" mount_path:"auth/oidc/" metadata:<key:"group1" value:"[\"928636f4-fd0d-4149-978e-a6fb68bb19de\"]" > metadata:<key:"name" value:"xxxxxxxx" > metadata:<key:"yyyyyy" value:"zzzzzz" > metadata:<key:"upn" value:"xxxxxx" > name:"xxxxxxxxx" creation_time:<seconds:1552491728 nanos:280567500 > last_update_time:<seconds:1552491728 nanos:280567500 > namespace_id:"root" "
[DEBUG] identity: refreshing external group memberships: entity_id=603b75a3-9ff5-22d9-2159-f500df30f0f2 group_aliases=["mount_accessor:"auth_oidc_8c65cc06" name:"[\"928636f4-fd0d-4149-978e-a6fb68bb19de\"]" "]
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/2A833F19-3551-44BE-BD26-1601DDF4BC73%40hashicorp.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/720288cb-33e7-4b48-a7a5-0f3e8b1379b0%40googlegroups.com.
The callback from the provider did not supply all of the required parameters. Please click Sign In to try again. If the problem persists, you may want to contact your administrator.
vault write auth/oidc/config \
oidc_discovery_url="https://{{ azure_url }}/{{ azure_tenant_id }}/" \
oidc_client_id="{{ azure_client_id }}" \
oidc_client_secret="{{ azure_client_secret }}" \
default_role="reader"
vault write auth/oidc/role/reader \
allowed_redirect_uris="{{ lookup('env', 'VAULT_ADDR') }}/ui/vault/auth/oidc/oidc/callback" \
user_claim="email" \
policies="{{ policiesEnv | join(',') }}"
> To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/3ad46843-212e-44ff-8f52-ef8d92b2e503%40googlegroups.com.
In the example you sent earlier the alias name would be 928636f4-fd0d-4149-978e-a6fb68bb19de. Aka the group id from aad. Also note that on your role configuration you do have to have group_claims set to "groups". Also when creating the group alias make sure to set the with back end to the mount for your aad oidc connector.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/3ad46843-212e-44ff-8f52-ef8d92b2e503%40googlegroups.com.