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': [],
}]
Convert v3 token data into v2.0 token data.
This method expects a dictionary generated from V3TokenDataHelper.get_token_data() and converts it to look like a v2.0 token dictionary.
Parameters: | v3_token_data – dictionary formatted for v3 tokens |
---|---|
Returns: | dictionary formatted for v2 tokens |
Raises keystone.exception.Unauthorized: | |
If a specific token type is not supported in v2. |
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: |
|
---|---|
Raises keystone.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