Comments (6)
I actually see why the profile.scala.html
page says the session is endless, and thats because the logic for this statement
@currentAuth() { auth =>
@Messages("playauthenticate.profile.logged") @_providerIcon(auth.getProvider())<br/>
@if(auth.expires() == -1){
@Messages("playauthenticate.profile.session", auth.getId(), Application.formatTimestamp(auth.expires()))
} else {
@Messages("playauthenticate.profile.session_endless", auth.getId())
}
}
should say @if(auth.expires() != -1){
ie: (!=
NOT ==
)
That appears to be a bug with the play-authenticate-usage sample...
I would still like to know if refreshing the oauth token is something to pursue with Play-Authenticate
from play-authenticate.
Good catch - if you fixed it in your stream, would you send me a pull request please?
from play-authenticate.
Regarding the expiry, you are right - this could be implemented in Play! Authenticate, so that after the timeout Play! Authenticate will try to renew the session and only time it out if the access has been revoked or the user isn't there any more. The refresh token can actually be gathered from the OAuth properties. I was wondering to include that in the core, decided against it, because it might not be available for all providers - if you send me a pull request with this feature being configurable, I would be more than happy to merge it!
from play-authenticate.
I havent gotten around to fixing it yet. Might be a while. but it seems
like something that could be really useful! Ill let you know if I start
working on it.
On Thu, Feb 28, 2013 at 3:21 PM, Joscha Feth [email protected]:
Regarding the expiry, you are right - this could be implemented in Play!
Authenticate, so that after the timeout Play! Authenticate will try to
renew the session and only time it out if the access has been revoked or
the user isn't there any more. The refresh token can actually be gathered
from the OAuth properties. I was wondering to include that in the core,
decided against it, because it might not be available for all providers -
if you send me a pull request with this feature being configurable, I would
be more than happy to merge it!—
Reply to this email directly or view it on GitHubhttps://github.com//issues/57#issuecomment-14255216
.
from play-authenticate.
Does Play! Authenticate already has a way of renewing the session, or will it always expire after 1 hour?
from play-authenticate.
it deliberately expires after 1 hour right now.
from play-authenticate.
Related Issues (20)
- Play 2.6 support HOT 12
- Oauth2 Google Scope issue
- There is a problem with Login with LinkedIn
- UserServicePlugin registered multiple times during production HOT 3
- connection from mobile APP HOT 1
- "playeasymail" in from when receive mail HOT 1
- return Result in JSON from signup or login HOT 1
- Sign up does not send any email HOT 3
- How to sign up users on their behalf by another user HOT 1
- Conflicting cross'version
- Opposite of merging users?
- "Remember Me" functionality? HOT 13
- TOTP using Google Authenticator? HOT 2
- Redirect on other URL than index HOT 3
- Sample app not running HOT 1
- Basic provider route throws exception HOT 6
- Create SQL insert User (Admin ect)
- Change Password never persists because of lack of setters? HOT 1
- Play 2.7 support HOT 4
- Play 2.5 link is not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-authenticate.