Bases: object
Create 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: |
|
---|---|
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 federated 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 |
Keystone PKI Token Provider.
Keystone Compressed PKI Token Provider.
Keystone UUID Token Provider.