+
    wi(                        ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHtHt ^ RIHt ^ RIHtHt  ! R R]
],          4      t ! R R]	4      t] ! R R4      4       tR# )    N)	dataclass)Any)uuid4)	BaseModel	RootModelValidationError)Request)Response)stringify_pydantic_error)PydanticJSONResponse) OAuthAuthorizationServerProviderRegistrationErrorRegistrationErrorCode)ClientRegistrationOptions)OAuthClientInformationFullOAuthClientMetadatac                   ,   a  ] tR t^t o V 3R ltRtV tR# )RegistrationRequestc                &   < V ^8  d   Qh/ S[ ;R&   # )   root)r   )format__classdict__s   "U/home/ubuntu/.local/lib/python3.14/site-packages/mcp/server/auth/handlers/register.py__annotate__ RegistrationRequest.__annotate__   s            N__name__
__module____qualname____firstlineno____annotate_func____static_attributes____classdictcell__r   s   @r   r   r            r   r   c                   ,   a  ] tR t^t o V 3R ltRtV tR# )RegistrationErrorResponsec                @   < V ^8  d   Qh/ S[ ;R&   S[R,          ;R&   # )r   errorNerror_description)r   str)r   r   s   "r   r   &RegistrationErrorResponse.__annotate__   s        Tz! r   r   Nr   r'   s   @r   r*   r*      r(   r   r*   c                   >   a  ] tR t^t o V 3R lR ltV 3R ltRtV tR# )RegistrationHandlerc                &   < V ^8  d   QhRS[ RS[/# )r   requestreturn)r	   r
   )r   r   s   "r   r    RegistrationHandler.__annotate__"   s     f fG f fr   c           
       "    VP                  4       G R j  xL
 p\        P                  ! V4      p\        \        4       4      pTP                  f   RTn	        R pTP                  R8w  d   \        P                  ! ^ 4      pTP                  fD   T P                  P                  e,   RP                  T P                  P                  4      Tn        MTP                  e   T P                  P                   e   \#        TP                  P%                  4       4      p\#        T P                  P                   4      pTP'                  T4      '       g1   \	        \        RRR	P                  Yx,
          4       2R7      RR7      # R
R0P'                  \#        TP(                  4      4      '       g   \	        \        RRR7      RR7      # RTP*                  9  d   \	        \        RRR7      RR7      # \-        \.        P.                  ! 4       4      p	T P                  P0                  e   YP                  P0                  ,           MR p
\3        R"/ RTbRT	bRTbRT
bRTP4                  bRTP                  bRTP(                  bRTP*                  bRTP6                  bRTP8                  bRTP:                  bRTP                  bRTP<                  bRTP>                  bRTP@                  bRTPB                  bRTPD                  bR TPF                  bR!TPH                  b p T PJ                  PM                  T4      G R j  xL
  \	        T^R7      #  EL6  \         d,   p\	        \        R\        T4      R7      RR7      u R p?# R p?ii ; i LM  \N         d7   p\	        \        TPP                  TPR                  R7      RR7      u R p?# R p?ii ; i5i)#Ninvalid_client_metadata)r,   r-   i  )contentstatus_codeclient_secret_postnone z Requested scopes are not valid: z, authorization_coderefresh_tokenz8grant_types must be authorization_code and refresh_tokencodez?response_types must include 'code' for authorization_code grant	client_idclient_id_issued_atclient_secretclient_secret_expires_atredirect_uristoken_endpoint_auth_methodgrant_typesresponse_typesclient_name
client_urilogo_uriscopecontactstos_uri
policy_urijwks_urijwkssoftware_idsoftware_versionr   )*jsonr   model_validater   r   r*   r   r.   r   rE   secrets	token_hexrK   optionsdefault_scopesjoinvalid_scopessetsplitissubsetrF   rG   inttimeclient_secret_expiry_secondsr   rD   rH   rI   rJ   rL   rM   rN   rO   rP   rQ   rR   providerregister_clientr   r,   r-   )selfr3   bodyclient_metadatavalidation_errorr@   rB   requested_scopesrZ   rA   rC   client_infoes   &&           r   handleRegistrationHandler.handle"   s    	 'D1@@FO L	 55=9MO655?#--b1M  (T\\-H-H-T$'HHT\\-H-H$IO!"".4<<3L3L3X"?#8#8#>#>#@At||889L#,,\::+57*L99%5%DEF+H
 !$  %o6??OD_D_@`aa'13&`    777'13&g    "$))+. ||88D  ,,"K"KK 	! 1 

 3
 (
 &>	
 *77
 (7'Q'Q
 (33
 +99
 (33
 '11
 %--
 "''
 %--
 $++
  '11!
" %--#
$ !%%%
& (33'
( -==)
,	--//<<< (MMy (  	'13&>?O&P   	j = ! 	'1STSfSfg 	s   OM MM K*ON ;N	<N OM N N;N<ONO	N O+OOOOOc                L   < V ^8  d   Qh/ S[ S[S[S[3,          ;R&   S[;R&   # )r   ra   rW   )r   r   r   )r   r   s   "r   r   r5      s(     .sC}==  '& r   r   N)r    r!   r"   r#   rj   r$   r%   r&   r'   s   @r   r1   r1      s     
f f  r   r1   ) rU   r_   dataclassesr   typingr   uuidr   pydanticr   r   r   starlette.requestsr	   starlette.responsesr
   mcp.server.auth.errorsr   mcp.server.auth.json_responser   mcp.server.auth.providerr   r   r   mcp.server.auth.settingsr   mcp.shared.authr   r   r   r*   r1   r   r   r   <module>rx      sl      !   : : & ( ; > o o > K)$78 "	 "
 j j jr   