MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/oauth2/rfc6750/errors.py:36–47  ·  view source on GitHub ↗
(
        self,
        description=None,
        uri=None,
        status_code=None,
        state=None,
        realm=None,
        extra_attributes=None,
    )

Source from the content-addressed store, hash-verified

34 status_code = 401
35
36 def __init__(
37 self,
38 description=None,
39 uri=None,
40 status_code=None,
41 state=None,
42 realm=None,
43 extra_attributes=None,
44 ):
45 super().__init__(description, uri, status_code, state)
46 self.realm = realm
47 self.extra_attributes = extra_attributes or {}
48
49 def get_headers(self):
50 """If the protected resource request does not include authentication

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected