accepts_authorization


Description:

[ CCode ( cname = "soup_auth_domain_accepts" ) ]
public string? accepts_authorization (ServerMessage msg)

Checks if msg contains appropriate authorization for this to accept it.

Mirroring [method@AuthDomain.covers], this does not check whether or not this *cares* if msg is authorized.

This is used by [class@Server] internally and is probably of no use to anyone else.

Parameters:

this

a AuthDomain

msg

a ServerMessage

Returns:

the username that msg has authenticated as, if in fact it has authenticated. null otherwise.