locked
For access token, expires_in parameter always 3600 sec?

    Question

  • Hi all,

    For access token's "expires_in" parameter,

    Is it always "3600"sec ?

    Is there any way to change this value?

    Thanks

    Monday, May 07, 2012 7:17 AM

Answers

  • Hi Woody,

    The expiration time is defined by the server. I don't see anything in the standard to request longer times, but you can refresh the token when it expires. Some client API may automatically do this for you.

    If you are using the Live Connect API then you will be better off asking questions about it on the Live Connect forum.

    --Rob

    • Marked as answer by woody tk Wednesday, May 09, 2012 2:41 AM
    Tuesday, May 08, 2012 10:08 PM
    Owner

All replies

  • I'm not sure what you are talking about here. Can you please provide more details on which function and parameters you are talking about?

    --Rob

    Tuesday, May 08, 2012 3:20 AM
    Owner
  • Hi Rob,

    OAuth 2.0, http://msdn.microsoft.com/en-us/library/live/hh243647.aspx

    Usually, Client send request to server.
    And  then, server will reponse a AccessToken.

    Below is the question:
    For the response parameters "expires_in"

    Naturally, the "expires_in" is always 3600.
    Is there any way to request other value? 
    ex: I want get a AccessToken's expires_in is 7200, is it possible?

    Thanks

    Tuesday, May 08, 2012 11:19 AM
  • Hi Woody,

    The expiration time is defined by the server. I don't see anything in the standard to request longer times, but you can refresh the token when it expires. Some client API may automatically do this for you.

    If you are using the Live Connect API then you will be better off asking questions about it on the Live Connect forum.

    --Rob

    • Marked as answer by woody tk Wednesday, May 09, 2012 2:41 AM
    Tuesday, May 08, 2012 10:08 PM
    Owner