-
Notifications
You must be signed in to change notification settings - Fork 57
Mimic and Repose
Benjamen Meyer edited this page Jun 7, 2016
·
2 revisions
If you want to use Mimic with Repose, then you will need to configure the keystone-v2 filter in order to get the JSON message support required by Mimic.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<!--
_=_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_=
Repose
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Copyright (C) 2010 - 2015 Rackspace US, Inc.
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_=_
-->
<keystone-v2 xmlns="http://docs.openrepose.org/repose/keystone-v2/v1.0">
<identity-service username="some-user" password="some-password"
uri="http://localhost:8900/identity/"
connection-pool-id="keystone-v2-pool"
/>
<cache>
<timeouts variability="10">
<token>600</token>
<group>600</group>
<endpoints>600</endpoints>
</timeouts>
<!-- The ID of a feed defined in the Atom Feed service configuration. -->
<atom-feed id="some-feed"/>
</cache>
<tenant-handling send-all-tenant-ids="true">
<validate-tenant>
<!-- Match URI: /{tenant-id}/... there can only be one group in the regex -->
<uri-extraction-regex>^/(-?[\w]+)/.*$</uri-extraction-regex>
</validate-tenant>
<send-tenant-id-quality default-tenant-quality="1.0" roles-tenant-quality="0.5"/>
</tenant-handling>
</keystone-v2>