Authenticate in End User Guide

Bug #1606921 reported by Guillaume Moulard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shade
New
Undecided
Unassigned
openstack-manuals
Won't Fix
Wishlist
Unassigned

Bug Description

hi,

On http://docs.openstack.org/user-guide/sdk_authenticate.html is necessary to detail the authentication method for keystone, nova, neutron, ... clients.

probably the most interesting way is to create a generic python class with some methods for dedicated authentication by clients:

credentials.py
import os

def get_credentials():
    d = {}
    d['username'] = os.environ['OS_USERNAME']
    d['password'] = os.environ['OS_PASSWORD']
    d['auth_url'] = os.environ['OS_AUTH_URL']
    d['tenant_name'] = os.environ['OS_TENANT_NAME']
    return d

def get_nova_credentials():
    d = {}
    d['username'] = os.environ['OS_USERNAME']
    d['api_key'] = os.environ['OS_PASSWORD']
    d['auth_url'] = os.environ['OS_AUTH_URL']
    d['project_id'] = os.environ['OS_TENANT_NAME']
    return d

def get_nova_credentials_v2():
    d = {}
    d['version'] = '2'
    d['username'] = os.environ['OS_USERNAME']
    d['api_key'] = os.environ['OS_PASSWORD']
    d['auth_url'] = os.environ['OS_AUTH_URL']
    d['project_id'] = os.environ['OS_TENANT_NAME']
    d['region_name'] = os.environ['OS_REGION_NAME']

...

After on all the documentation we can reuse this libray

Is I can help for this update :)

GM

-----------------------------------
Release: 1.0.0 on 2016-07-26 23:45
SHA: 9b6f87ab310a17baa166d1b59db56584b9241bbf
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/user-guide/source/sdk_authenticate.rst
URL: http://docs.openstack.org/user-guide/sdk_authenticate.html

Tags: user-guide
description: updated
Revision history for this message
Atsushi SAKAI (sakaia) wrote :

user-guide seems too simple description. At least it needs to add pointer.

Changed in openstack-manuals:
status: New → Confirmed
Revision history for this message
Joseph Robinson (joseph-r-email) wrote :

Hi Guillaume, I've contacted some Subject Matter Experts for feedback on the proposal here. Thanks!

Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

Joe - what's the update here? :)

Changed in openstack-manuals:
importance: Undecided → Wishlist
Revision history for this message
Joseph Robinson (joseph-r-email) wrote :

I have python SDK subject matter expert feedback I need to follow up on for this bug. Will need to stay wishlist for a bit longer.

Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

Okay thanks Joe :)

Ben Silverman (tersian)
Changed in openstack-manuals:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.