change token expirary

9 views
Skip to first unread message

Lucas

unread,
Dec 27, 2011, 8:17:41 AM12/27/11
to gwt-oauth2 users
is there anyway to make the expirary longer? currently it's
3599999ms . what is the maximum can set?

Lucas

unread,
Dec 27, 2011, 8:48:40 AM12/27/11
to gwt-oauth2 users
Is it correct just by changing expires_in=XXX in below file
AuthRequest ? what is the maximum can set?

String toUrl(Auth.UrlCodex urlCodex) {
return new StringBuilder(authUrl)
.append(authUrl.contains("?") ? "&" : "?")
.append("client_id").append("=").append(urlCodex.encode(clientId))
.append("&").append("response_type").append("=").append("token")
.append("&").append("scope").append("=").append(scopesToString(urlCodex))
.toString();
}



Jason Hall

unread,
Feb 12, 2012, 11:20:39 AM2/12/12
to gwt-oaut...@googlegroups.com
Expiration is set by the server you are requesting access from (e.g., Google, Facebook, etc.) so there's nothing you as a client can do to request a longer expiration time. Sorry.

- Jason
Reply all
Reply to author
Forward
0 new messages