External login?
ivxvm opened this issue · 1 comments
ivxvm commented
What feature do you want to see added?
Make it possible to log in externally, for example from a (custom) launcher, so that player doesn't have to log in again in game after he already logged in using launcher. If it's already possible, would be nice to have examples for this somewhere nearby other integration examples.
Are there any alternatives?
I checked integration examples but they only seem to be checking password and registering, not modifying dynamic logged in state.
Anything else?
No response
knighthat commented
this plugin checks last login column (DataSource.mySQLColumnLastLogin) and last login IP (DataSource.mySQLColumnIp) when player joins to determine if that user needs to enter password.
It also requires session to be enabled (settings.sessions.enabled).
Here's a simple solution:
- Enable session and set it to some reasonable time (5 mins)
- Make an external authentication
- When credentials are verified, send changes to the database (last login timestamp and last IP)
- Player will be able to join without typing password again