expose the `token` attribute if a valid scitoken is found
This would just be for convenience of checking and assigning authentication mechanisms in downstream codes (like ligo-gracedb
.
So in this scenario, self.token
for a Session
class would be None
if no token is found. Similar to how self.cert
is set for x509
sessions, and self.auth
is set for basic (username/password) authentication. While it is possible to check what the header is set to, having this attribute exposed would be cleaner and more in-line with the x509
and basic auth.