Ë &¶`².ã óü—dZddlmZmZmZmZmZddlmZddl m Z ddl m Z ddl mZddlmZdd lmZGd „d e e eee«ZGd „d e e eee«ZGd„de e ee«ZGd„dee ee«ZGd„dee ee«Zy)zÊ oauthlib.oauth2.rfc6749.endpoints.pre_configured ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various endpoints needed for providing OAuth 2.0 RFC6749 servers. é)ÚAuthorizationCodeGrantÚClientCredentialsGrantÚ ImplicitGrantÚRefreshTokenGrantÚ%ResourceOwnerPasswordCredentialsGrant)Ú BearerTokené)ÚAuthorizationEndpoint)ÚIntrospectEndpoint)ÚResourceEndpoint)ÚRevocationEndpoint)Ú TokenEndpointcó—eZdZdZ dd„Zy)ÚServerzˆÔÜCØ óˆÔä!7Ð8IÓ!JˆÔÜ.Ð/@ÓAˆÔä!Ð"3°_Ø-Ð/FóHˆŒ ô ×&Ñ& tÀ6à37·?±?Ø48×4GÑ4GØ37·?±?ñ7)ð ;?¿+¹+õ  Gô ×јtÐ8Là9=¿¹Ø/3×/BÑ/BØ9=×9OÑ9OØ48×4FÑ4Fñ ,!ð 37·+±+õ ?ô ×!Ñ! $°hØ/7¸¿¹Ð.Eõ Gä×#Ñ# DÐ*;Ô<Ü×#Ñ# DÐ*;Õ<ó©NNN©Ú__name__Ú __module__Ú __qualname__Ú__doc__r*©r3r2rrs„ñGà;?Ø?Cô-=r3rcó—eZdZdZ dd„Zy)ÚWebApplicationServerzLAn all-in-one endpoint featuring Authorization code grant and Bearer tokens.Nc óÜ—t|«|_t|«|_t ||||«|_t j|dd|ji|j ¬«tj|d|j|jdœ|j ¬«tj|dd|j i¬«tj||«tj||«y) aöConstruct a new web application server. :param request_validator: An implementation of oauthlib.oauth2.RequestValidator. :param token_expires_in: An int or a function to generate a token expiration offset (in seconds) given a oauthlib.common.Request object. :param token_generator: A function to generate a token from a request. :param refresh_token_generator: A function to generate a token from a request for the refresh token. :param kwargs: Extra parameters to pass to authorization-, token-, resource-, and revocation-endpoint constructors. rrr)rrrr r!N) rr$rr(rr)r r*rr r r ©r+r,r.r-r/r1s r2r*zWebApplicationServer.__init__NsÓ€ô1Ð1BÓCˆŒÜ.Ð/@ÓAˆÔÜ!Ð"3°_Ø-Ð/FóHˆŒ ä×&Ñ& tÀ6Ø7=¸t¿¹Ð6OØ:>¿+¹+õ Gô ×јtÐ8Là9=¿¹Ø48×4FÑ4Fñ,!ð37·+±+õ  ?ô ×!Ñ! $°hØ/7¸¿¹Ð.Eõ Gä×#Ñ# DÐ*;Ô<Ü×#Ñ# DÐ*;ÕØ@Dô=r3r<có—eZdZdZ dd„Zy)ÚMobileApplicationServerzGAn all-in-one endpoint featuring Implicit code grant and Bearer tokens.Nc óT—t|«|_t||||«|_t j |dd|ji|j¬«t j |dd|ji¬«tj ||dg¬«tj ||dg¬«y)aõConstruct a new implicit grant server. :param request_validator: An implementation of oauthlib.oauth2.RequestValidator. :param token_expires_in: An int or a function to generate a token expiration offset (in seconds) given a oauthlib.common.Request object. :param token_generator: A function to generate a token from a request. :param refresh_token_generator: A function to generate a token from a request for the refresh token. :param kwargs: Extra parameters to pass to authorization-, token-, resource-, and revocation-endpoint constructors. rrr r!Ú access_token©Úsupported_token_typesN) rr%rr)r r*r r r r>s r2r*z MobileApplicationServer.__init__usª€ô,Ð,=Ó>ˆÔÜ!Ð"3°_Ø-Ð/FóHˆŒ ä×&Ñ& tÀ7à+2°D×4GÑ4Gð7Ià:>¿+¹+õ Gô ×!Ñ! $°hØ/7¸¿¹Ð.Eõ Gä×#Ñ# DÐ*;Ø;IÐ:Jõ Lä×#Ñ# DÐ*;Ø;IÐ:Jö Lr3r4r5r:r3r2r@r@ps„ñRà:>Ø@DôLr3r@có—eZdZdZ dd„Zy)ÚLegacyApplicationServerz]An all-in-one endpoint featuring Resource Owner Password Credentials grant and Bearer tokens.Nc ó~—t|«|_t|«|_t ||||«|_t j|d|j|jdœ|j ¬«tj|dd|j i¬«tj||«tj||«y)a Construct a resource owner password credentials grant server. :param request_validator: An implementation of oauthlib.oauth2.RequestValidator. :param token_expires_in: An int or a function to generate a token expiration offset (in seconds) given a oauthlib.common.Request object. :param token_generator: A function to generate a token from a request. :param refresh_token_generator: A function to generate a token from a request for the refresh token. :param kwargs: Extra parameters to pass to authorization-, token-, resource-, and revocation-endpoint constructors. r)rrrr r!N) rr&rr(rr)rr*r r r r>s r2r*z LegacyApplicationServer.__init__˜s°€ôDØ óˆÔä.Ð/@ÓAˆÔÜ!Ð"3°_Ø-Ð/FóHˆŒ ä×јt¸ à/3×/BÑ/BØ48×4FÑ4Fñ,!ð37·+±+õ  ?ô ×!Ñ! $°hØ/7¸¿¹Ð.Eõ Gä×#Ñ# DÐ*;Ô<Ü×#Ñ# DÐ*;ÕØ@Dô=r3rFcó—eZdZdZ dd„Zy)ÚBackendApplicationServerzLAn all-in-one endpoint featuring Client Credentials grant and Bearer tokens.Nc óT—t|«|_t||||«|_t j |dd|ji|j¬«t j |dd|ji¬«tj ||dg¬«tj ||dg¬«y)aûConstruct a client credentials grant server. :param request_validator: An implementation of oauthlib.oauth2.RequestValidator. :param token_expires_in: An int or a function to generate a token expiration offset (in seconds) given a oauthlib.common.Request object. :param token_generator: A function to generate a token from a request. :param refresh_token_generator: A function to generate a token from a request for the refresh token. :param kwargs: Extra parameters to pass to authorization-, token-, resource-, and revocation-endpoint constructors. rrr r!rBrCN) rr'rr)rr*r r r r>s r2r*z!BackendApplicationServer.__init__½sª€ô"8Ð8IÓ!JˆÔÜ!Ð"3°_Ø-Ð/FóHˆŒ ä×јtÐ8Là#7¸×9OÑ9Oð,Qà26·+±+õ ?ô ×!Ñ! $°hØ/7¸¿¹Ð.Eõ Gä×#Ñ# DÐ*;Ø;IÐ:Jõ Lä×#Ñ# DÐ*;Ø;IÐ:Jö Lr3r4r5r:r3r2rIrI¸s„ñWà:>Ø@DôLr3rIN)r9rrrrrrÚtokensrÚ authorizationr Ú introspectr Úresourcer Ú revocationr rrrr<r@rFrIr:r3r2úrPs ðñ÷õõ!Ý0Ý*Ý&Ý*Ý ô2=Ð "Ð$6¸ Ø Ð1ô2=ôj$=Ð0Ð2DÀmØ+Ð-?ô$=ôN LÐ3Ð5GØ.Ð0Bô LôF"=˜mÐ-?Ø.Ð0Bô"=ôJ L˜}Ð.@Ø/Ð1Cõ Lr3