sockchat:c2s:authn-attempt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sockchat:c2s:authn-attempt [2025/04/13 21:12] – authn -> authz flash | sockchat:c2s:authn-attempt [2025/04/13 21:14] (current) – redirect flash | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Packet 1: Authorization Attempt ====== | + | #redirect |
- | + | ||
- | Attempts authentication with the server. | + | |
- | + | ||
- | There are two supported formats. | + | |
- | One works roughly the same as the [[https:// | + | |
- | + | ||
- | ===== Format ===== | + | |
- | + | ||
- | ^ Index ^ Type ^ Description ^ | + | |
- | | 0 | '' | + | |
- | | 1 | [[sockchat: | + | |
- | | 2 | [[sockchat:types# | + | |
- | + | ||
- | The only difference between the Authorization header is that the scheme and arguments are separated by a '' | + | |
- | + | ||
- | The legacy format would send index 1 and up to a private authentication verification script. | + | |
- | Only one public implementation of this was the one for phpBB, which substitutes index 1 for the current User ID and index 2 for the Session ID cookie value. | + | |
- | + | ||
- | SharpChat falls back to the legacy implementation by checking whether index 1 is numeric, in which case it is assumed to be a user id. | + | |
- | + | ||
- | ===== Examples ====== | + | |
- | + | ||
- | A client authenticating using a Bearer token: | + | |
- | + | ||
- | 1\tBearer\tUiTfepl9rNY0dGMpDjehMu1FR7DqsXPbtd2kis8sHKGaHXNdK2B6iG6JrpARyOqU | + | |
- | + | ||
- | A client authenticating using a Flashii Misuzu token: | + | |
- | + | ||
- | 1\tMisuzu\tAgOr1Q7cwN5hp7szVwoC-PapvsJWajdU3_sjNLdJqqx0D1b51AF1ATEBc0BndjJLd2pvU2hHdzN5SjNzUiTfepl9rNY0dGMpDjehMu1FR7DqsXPbtd2kis8sHKGaHXNdK2B6iG6JrpARyOqU | + | |
- | + | ||
- | A client authenticating using the legacy phpBB format: | + | |
- | + | ||
- | 1\t2\tEvFvkZgLFoG1ZShMxpxILmS744usEjmH | + | |
- | + | ||
- | ===== See Also ===== | + | |
- | + | ||
- | * [[sockchat: | + | |
- | * [[sockchat: | + |
sockchat/c2s/authn-attempt.1744578721.txt.gz · Last modified: by flash