Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HP-IDM extension to fix Bug 890411
See https://github.com/openstack/keystone/raw/master/keystone/content/admin/HP-IDM-admin-devguide.pdf https://github.com/openstack/keystone/raw/master/keystone/content/admin/HP-IDM-admin.wadl and https://bugs.launchpad.net/keystone/+bug/890411 for more details. incorporated feedbacks from https://review.openstack.org/#change,2624 Change-Id: Ied659b3c010ac4efa04c073388bdf3f3a67a51f0
- Loading branch information
1 parent
f9ce911
commit fafc25b
Showing
30 changed files
with
703 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | ||
|
||
# Copyright 2010 OpenStack LLC. | ||
# All Rights Reserved. | ||
# | ||
# 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. | ||
|
||
from keystone.contrib.extensions.admin.extension import BaseExtensionHandler | ||
from keystone.controllers.token import TokenController | ||
|
||
|
||
class ExtensionHandler(BaseExtensionHandler): | ||
def map_extension_methods(self, mapper, options): | ||
token_controller = TokenController(options) | ||
|
||
# Token Operations | ||
mapper.connect("/tokens/{token_id}", controller=token_controller, | ||
action="validate_token", | ||
conditions=dict(method=["GET"])) | ||
mapper.connect("/tokens/{tenant_id}", | ||
controller=token_controller, | ||
action="check_token", conditions=dict(method=["HEAD"])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"extension": { | ||
"name": "HP Token Validation Extension", | ||
"namespace": "http://docs.openstack.org/identity/api/ext/HP-IDM/v1.0", | ||
"alias": "HP-IDM", | ||
"updated": "2011-12-06T19:00:00-00:00", | ||
"description": "Validate token with the optional serviceId parameter so that only the roles associated with the given service IDs are returned. See https://bugs.launchpad.net/keystone/+bug/890411 for more details.", | ||
"links": [ | ||
{ | ||
"rel": "describedby", | ||
"type": "application/pdf", | ||
"href": "https://github.com/openstack/keystone/raw/master/keystone/content/admin/HP-IDM-admin-devguide.pdf" | ||
}, | ||
{ | ||
"rel": "describedby", | ||
"type": "application/vnd.sun.wadl+xml", | ||
"href": "https://raw.github.com/openstack/keystone/master/keystone/content/admin/HP-IDM-admin.wadl" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extension | ||
xmlns="http://docs.openstack.org/common/api/v1.0" | ||
xmlns:atom="http://www.w3.org/2005/Atom" | ||
name="HP Token Validation Extension" | ||
namespace="http://docs.openstack.org/identity/api/ext/HP-IDM/v1.0" | ||
alias="HP-IDM" | ||
updated="2011-12-25T17:00:00-00:00"> | ||
|
||
<description> | ||
Validate token with the optional serviceId parameter so that only the roles associated with the given service IDs are returned. See https://bugs.launchpad.net/keystone/+bug/890411 for more details. | ||
</description> | ||
|
||
<atom:link rel="describedby" | ||
type="application/pdf" | ||
href="https://github.com/openstack/keystone/raw/master/keystone/content/admin/HP-IDM-admin-devguide.pdf"/> | ||
<atom:link rel="describedby" | ||
type="application/vnd.sun.wadl+xml" | ||
href="https://github.com/openstack/keystone/raw/master/keystone/content/admin/HP-IDM-admin.wadl"/> | ||
</extension> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.