Git Product home page Git Product logo

fujitsu_k5_user_onboarding_demo's Introduction

Fujitsu K5 Example User OnBoarding APIs

Platform: Fujitsu K5 IaaS Project to hold my OpenStack K5 Python 2.7 API Scripts integrated with Flask

This is an example python flask application used to illustrate how to automate the onboarding of new users to Fujitsu's K5 platform via its APIs.

It has the following functionality :

(i) Add new user to existing group and project

(ii) Add new user to new group and project

(iii) Add existing user to an existing project

(iv) Add existing user to new group and project

#Installation

#Ubuntu 14.04 with Python 2.7

#Cloud Foundry

#Instructions

  1. Login using your K5 credentials - You MUST be a Contract Admin to login, non admins will simply be returned to the login screen.
  2. Enter the email address of the user to be added - email address must be of the format [email protected]. If the user does not exist they will be added to the default project first as a member role before being added to the project as a cpf_systemowner. If the user already exists they will simply be added to the project identified next.
  3. Enter the project that the user is to be added to - if the project already exists the user will be added to this project. If the project does not exist then it will first be created, along with a group named [projectName]_Admin with the cpf_systemowner role and then the user will be assigned to this group.
  4. Select the Adduser button - wait - after about 90 seconds you should get a results screen with the new username and password - ensure to copy this as it's not recorded anywhere. Temporary URL where a demo of this app was active on K5 Cloud Foundry PaaS when this blog was originally published (you may be lucky!) https://k5onboarding.uk-1.cf-app.net/

#Next steps (feel free to contribute, not just suggestions but code too) :

  • Flask enhancements : migrate to flask-login, WTF forms
  • Use tokens everywhere
  • Add Flask user updates
  • Email results directly to new user with welcome pack

fujitsu_k5_user_onboarding_demo's People

Contributors

allthingsclowd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.