support service for customize

Asked by maclaon

as u know, i can create keystone service with type 'identity, compute, volume, image, ec2, object-store', can i create my own service with that identity service, which i can storage some data of my own service.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Haneef Ali
Solved:
Last query:
Last reply:
Revision history for this message
Haneef Ali (haneef) said :
#1

Yes. you can do it.

Revision history for this message
maclaon (maclaonzen) said :
#2

huh, thx haneef, can u give me some examples about it, for that i just want to use the single component that keystone to provide identity service, especial without openstakc components, i am grateful for that!!!

Revision history for this message
Best Haneef Ali (haneef) said :
#3

May be I misunderstoond your question.

https://github.com/openstack/identity-api/blob/master/openstack-identity-api/v3/src/markdown/identity-api-v3.md

Use 1) POST Services to create your own service and register with keystone
Use 2) 1) POST Endpoint to associate your own service with endpoint.

Assuming ur service is a simple hello world service. Assume this is a java servlet. A user is going to call your service with X-AuthToken: "Token from keystone".

e.g curl -H "X-Auth-Token: Token" http://localhost/HelloworldService

Now in you service , write a filter ( which is same as auth middleware in keystone), which takes the X-Auth-Toekn and validates against keystone using token api. If the validation succeeds, then allow the call to pass through

Does that answer your question or I have totally misunderstood your question?

Revision history for this message
maclaon (maclaonzen) said :
#4

yeah, i get the right answer for my question, thx haneef, i am grateful for that

Revision history for this message
maclaon (maclaonzen) said :
#5

Thanks Haneef Ali, that solved my question.