Currently matix-authentication-service recognize device type by parsing the User-Agent request header when calling token exchange endpoint, while it can't recognize a Tauri App on MacOS (Tauri doesn't override user-agent by default like Electron, so it would results as a Unknown device.
OidcClient:processSigninResponse from oidc-client-ts already supports setting extraHeaders, it would be nice completeAuthorizationCodeGrant also accepts extraHeaders as a param.
Then I can customize my own header so that MAS will recognize it correctly:
completeAuthorizationCodeGrant(
code,
state,
{
'User-Agent': 'MyApp/1.0.0'
}
)
Currently
matix-authentication-servicerecognize device type by parsing theUser-Agentrequest header when calling token exchange endpoint, while it can't recognize a Tauri App on MacOS (Tauri doesn't override user-agent by default like Electron, so it would results as aUnknown device.OidcClient:processSigninResponsefromoidc-client-tsalready supports settingextraHeaders, it would be nicecompleteAuthorizationCodeGrantalso acceptsextraHeadersas a param.Then I can customize my own header so that MAS will recognize it correctly: