Skip to content

Enable platform plugins to prevent logging in if they won't be able to provide authentication #32

@jmderuty

Description

@jmderuty

Problem

When platform plugins handle authentication for the Users plugin (for instance Steam or EOS), it's possible they won't be able to authenticate the player (because the launcher is not started, the player does not own the game or is not logged in, etc...)

However, right now these situations cannot be handled gracefully before an actual connection is made with the Stormancer authentication server. This is leads to several issues:

  • Useless connections to the server.
  • More logs than necessary on the client, which makes understanding of the issue much more difficult than would be the case if the connection process was interrupted earlier.

Proposal

  • Add a OnLoggingIn event on the IAuthenticationEventHandler contract client side which enable implementations to interrupt the login process early with an associated error message.
  • Implement the new event in all platform plugins : device_identifier, STEAM, EOS, GoG, PSN, Nintendo and XBoxLive.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions