Basic Keystone Auth support
Note: This has been verified as working by the end customer
This commit is contained in:
parent
eb612d606c
commit
066637f496
6 changed files with 151 additions and 1 deletions
|
@ -0,0 +1,26 @@
|
|||
"""Add keystone login service
|
||||
|
||||
Revision ID: 2bf8af5bad95
|
||||
Revises: 154f2befdfbe
|
||||
Create Date: 2015-06-29 21:19:13.053165
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2bf8af5bad95'
|
||||
down_revision = '154f2befdfbe'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade(tables):
|
||||
op.bulk_insert(tables.loginservice, [{'id': 6, 'name': 'keystone'}])
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
op.execute(
|
||||
tables.loginservice.delete()
|
||||
.where(tables.loginservice.c.name == op.inline_literal('keystone'))
|
||||
)
|
||||
|
Reference in a new issue