OpenStack API token lifespan extension

All,

OpenStack API issues token after successful authentication. However, it is only valid for 1 hour.

Is there any workaround or possibility to extend token's lifespan?

Thanks & Regards, Ganesh.

-------------Problems Reply------------

You may want to take a look at the solutions used by Heat, the OpenStack orchestration engine.

Heat needs to be able to execute actions on behalf of a user at some point in the future. Heat cannot simply store a token because, as you have stated, tokens expire.

Heat offers two solutions to "deferred authentication".

  • Keystone Trusts
  • Stored passwords

There are lots of details about how Heat handles this here and here.

There are some API examples of keystone trusts on the eNovance blog, and some more over here.

Category:openstack Views:0 Time:2018-05-14

Related post

  • API Design: HTTP Basic Authentication vs API Token 2011-02-11

    I'm currently creating an authentication system on front of a public web API for a web application. Given that each user account has an API key and each request must be authenticated, I have two alternatives: Using an HTTP Basic Authentication, like

  • Renewing an API token in an ASP.NET MVC app 2011-11-04

    I'm calling into a 3rd party API from my ASP.NET MVC app. This API uses a service/API token that you get by calling a "renew" API. It expires after 5 days. If you call one of the service's APIs and the token as expired, you get an "api token expired"

  • GitHub, creating new repository (Github API token) 2012-03-15

    I have written python scripts to list repositories and commits. To create a new repository, I have used the following code: curl -F 'login=SolomonPeter26' -F 'token=mygithubapitoken' https://github.com/api/v2/json/repos/create -F 'name=REPONAME' -F '

  • How to use urllib2 when users only have a API token? 2012-04-08

    how would i tranfoms this curl command: curl -v -u 82xxxxxxxxxxxx63e6:api_token -X GET https://www.toggl.com/api/v6/time_entries.json into urlib2? I found this tutorial: http://www.voidspace.org.uk/python/articles/authentication.shtml but they use a

  • can't find api token in Github 2012-05-02

    I've just installed GitExtension. Everything is configured. When I click on "Clone Github Repository", It opens a dialog box titled "Github Configuration" with following input boxes: 1. User 2. Password 3. APIToken when I click on "Get Api Token" but

  • How to make sure API tokens & passwords stay off github 2014-02-13

    I am considering publishing a project on github. It may contain sensitive data like API tokens, which I naturally do not want to be public. I would like to use the code locally with correct tokens, passwords etc, but only placeholders should go to th

  • Google App Engine Channel API and Chrome Extensions 2011-02-09

    Over Christmas I implemented some code to open a channel to my App Engine application using the channel API and it was working fine. I recently returned to the code and find that it is broken, and the problem seems to lie in talkgadget that the clien

  • Google Search API Inside Firefox Extension 2009-04-15

    I am developing a firefox extension and I need to include the Google Search API. But I am encountering an error in the google.load('search','1') line. Can anyone tell what the problem is Thanks. --------------Solutions------------- If you've gathered

  • Good approach for a web API token scheme? 2009-08-10

    I am working on a REST API for a web application that up until now we have developed internally for a couple of companion applications. Now that we are looking at opening up to outside developers we want to add tokens to the API in order to help iden

  • how to: dynamically load google ajax api into chrome extension content script 2010-05-20

    I'm trying to make use of google's ajax apis in a chorme extension's "content script". On a regular html page, I would just do this: <script src="http://www.google.com/jsapi"></script> <script> google.load("language", "1"); </scr

  • Graph Goat Teleportation Data with Google Vis. API via Chrome Extension 2010-07-28

    I just checked my Chromium task manager and noticed that my Goats Teleported count is abnormally high. I thought it might be a good idea to create a browser extension that runs the goat teleportation data through Google Visualizations API and generat

  • Is there a limit on number of requests to Chrome history API from an extension? 2010-08-21

    When I was browsing through Chrome extension gallery I saw one author mentioned something about some possible limits on how many times you can search Chrome history through API. Is it true? I can't find any info on this. --------------Solutions------

  • Legacy API requires to pass callback name as string. Can I improve that API via an extension method? 2010-09-17

    I'm faced with a legacy API that doesn't use .NET events, but rather requires me to do this: // (first arg is System.Object, second arg is string, myFoo is of type Foo) myFoo.AddCallback(this, "DoSomething(int)"); This API requires that DoSomething b

  • Get Google API Token 2011-04-16

    I need to get the google valid token to use Google APIs, but my code does not work. could you please advice me? $client_id = '495225261106.apps.googleusercontent.com'; $client_secret = urlencode('MY_SECRET_CDE'); $redirect_uri = urlencode('http://MYP

  • Does the Google Reader API token expire? 2011-05-02

    Ok, so I have an app that hooks in pretty deeply with GR's "api". Everything is working nicely, BUT lately I have been getting permission denied returns from Google. If I log out of GR and log back in with my app it all starts working again. This lea

  • Facebook api token changed 2011-12-13

    I have a facebook app that was reading my friend's wall, I used to get access_token via https://graph.facebook.com/oauth/access_token?type=client_cred&client_id={0}&client_secret={1}&grant_type=client_credentials And there was no problem,

  • REST API Token-based Authentication 2012-03-19

    I'm developing a REST API that requires authentication. Because the authentication itself occurs via an external webservice over HTTP, I reasoned that we would dispense tokens to avoid repeatedly calling the authentication service. Which brings me ne

  • How to check Expiry Status of Google+ API Token Server-side using java client lib 2013-11-10

    I am developing an app on Google AppEngine, and utilizing Google+ SignIn with server-side flow method as documented here. I can get the token as above, and stores it in session. However, i want to check at login, if the token is valid or has expired.

  • Azure Active Directory API (token does not contain family_name and given_name) 2015-02-09

    I have a problem with Azure Directory API. I am able to authorize and get a token from Azure AD service for both of my accounts. I have checked all settings on windowsazure.com page and for both accounts it looks the same. I also use the same source

  • Using AccountManager to store credentials and refresh API tokens 2015-10-18

    The root problem I'm running into is that I want to make webservice API requests using a token. The token is obtained by hitting an auth endpoint with an email/password. The token has an expiration time, so in order for the Android app to perform smo

  • Cross-Browser Extensions API? 2011-02-06

    There are tools for developing cross-platform browser plugins. Are there any similar tools or APIs for browser extensions (i.e. toolbars, or filter systems like AdBlock)? --------------Solutions------------- Yes, but unfortunately each one has signif

  • Facebook API Access token 2011-06-02

    Hello I am reading the Facebook API docs but I need a simple Help. $token_url = "https://graph.facebook.com/oauth/access_token?" . "client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&client_secret=" . $app_secret . "&code="

  • Accessing Kashoo API through Python and SUDS. Problem with time format in authentication token 2011-07-10

    I'm trying to access this API https://www.kashoo.com/api-docs using SUDS in Python. The Python code I use is the following: >>> from suds.client import Client >>> client = Client('https://www.kashoo.com/api/v1?wsdl') >>> to

  • Adwords API developer Token 2011-12-02

    Can I use Adwords API developer token for multiple applications? In more detail, say if I have a website where I am using adwords API developer token, Can I use the same token for another application. Ofcourse both applications accessing the same acc

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.080 (s). 11 q(s)