RFC 7235 states that this header presents two authentication mechanisms:
WWW-Authenticate: Newauth realm="apps", type=1,
title="Login to \"apps\"", Basic realm="simple"
I have problems parsing this grammar and the RFC isn't helping, as it doesn't describe it. If an application should try to do so, I can't just try to split on commas, as that is used both to separate the authentications mechanisms and their parameters.
Would I be correct in my understanding if I were to find the start of each auth mechanism using a regex like \w+ realm=
?