Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


sockchat:s2c:authz-fail

This is an old revision of the document!


S2C Packet 1.n: Authorization Failure

Informs the client that its authorization attempt failed and why.

Format

Index Type Description
0 1 Authz/User Add packet ID
1 n Authz failed packet ID
2 string Reason string, listed below
3 1) timestamp Timestamp at which the client can attempt authorization again.

Reason strings

String Description
authfail Provided credentials have expired or were never valid to begin with.
joinfail Authorization succeeded, but the authenticated user is banned. Third field will contain expiration timestamp.
sockfail Current connection is already associated with another user. 2)
userfail Another user with the same user name is already connected. 3)

Examples

Expired credentials:

1\tn\tauthfail

Authorized client is banned until Sunday, 13 April 2025 21:45:55 GMT:

1\tn\tjoinfail\t1744580755

Authorized client has too many active connections:

1\tn\tsockfail

Something went wrong while verifying credentials:

1\tn\tuserfail

See Also

1)
Only present went the reason string is joinfail
2)
Original server implementation did not allow users to have more than a single connection. Newer implementations do allow this and issue this reason when an implementation defined connection limit is reached.
3)
Original server implementation did not allow users to have more than a single connection. Newer implementations use this as a generic fallback error.
sockchat/s2c/authz-fail.1744581734.txt.gz · Last modified: 2025/04/13 22:02 by flash