Is it possible to get a refresh token? And a longer living access token?
Or how can I do a persistand connection without having to relogin into the oauth login page again?
Thanks,
Toffe
oAuth2 refresh tokens and increase expire time of token?
Moderator: NADEO
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
oAuth2 refresh tokens and increase expire time of token?
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Re: oAuth2 refresh tokens and increase expire time of token?
You can ask for the scope "offline" to get a refresh token that you will be able to exchange for a code to get another token.
This part have not been used a lot, do not hesitate to ask if it does not work.
This part have not been used a lot, do not hesitate to ask if it does not work.

ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: oAuth2 refresh tokens and increase expire time of token?
I think you mean offlinemagnetik wrote:You can ask for the scope "offiline" to get a refresh token that you will be able to exchange for a code to get another token.
This part have not been used a lot, do not hesitate to ask if it does not work.


Thanks

Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Re: oAuth2 refresh tokens and increase expire time of token?
toffe wrote:I think you mean offline.

The token is valid for 1h, after that you have to use your refresh token to get a code and a token.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: oAuth2 refresh tokens and increase expire time of token?
Will it be possible to add scopes after the authorization took place? Is there some sort of function for that?
Thanks,
Toffe
Thanks,
Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Re: oAuth2 refresh tokens and increase expire time of token?
Nope, it wouldn't make sense since the authorization is precisely to authorize scopes to be accessed.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 

- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: oAuth2 refresh tokens and increase expire time of token?
Okay,Thanks
The offline is definitely working for me, thanks for your help guys!
Toffe
The offline is definitely working for me, thanks for your help guys!
Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Who is online
Users browsing this forum: No registered users and 1 guest