Bases: object
Creates V2 token data.
Munge catalogs from internal to output format Internal catalogs look like:
{$REGION: {
{$SERVICE: {
$key1: $value1,
...
}
}
}
The legacy api wants them to look like:
[{'name': $SERVICE[name],
'type': $SERVICE,
'endpoints': [{
'tenantId': $tenant_id,
...
'region': $REGION,
}],
'endpoints_links': [],
}]
Bases: object
Token data helper.
Populate roles basing on provided groups and project/domain
Used for ephemeral users with dynamically assigned groups. This method does not return anything, yet it modifies token_data in place.
Parameters: | token_data – a dictionary used for building token response |
---|---|
Group_ids: | list of group IDs a user is a member of |
Project_id: | project ID to scope to |
Domain_id: | domain ID to scope to |
User_id: | user ID |
Raises: | exception.Unauthorized - when no roles were found for a (group_ids, project_id) or (group_ids, domain_id) pairs. |
Keystone PKI Token Provider
Keystone Compressed PKI Token Provider
Keystone UUID Token Provider