§ &¶`².ã ó—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¦«ZdS)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„ZdS)ÚServerzÔ>ˆÔÝCØ ñôˆÔå!7Ð8IÑ!JÔ!JˆÔÝ.Ð/@ÑAÔAˆÔå!Ð"3°_Ø-Ð/FñHôHˆŒ õ Ô& tÀ6à37´?Ø48Ô4GØ37´?ð7)ð7)ð ;?¼+ð  Gñ Gô Gð Gõ Ô˜tÐ8Là9=¼Ø/3Ô/BØ9=Ô9OØ48Ô4Fð ,!ð,!ð 37´+ð ?ñ ?ô ?ð ?õ Ô! $°hØ/7¸¼Ð.Eð Gñ Gô Gð GåÔ# DÐ*;Ñ<Ô<Ð<ÝÔ# DÐ*;Ñ<Ô<Ð<Ð<Ð<ó©NNN©Ú__name__Ú __module__Ú __qualname__Ú__doc__r*©r3r2rrs7€€€€€ðGÐFà;?Ø?Cð-=ð-=ð-=ð-=ð-=ð-=r3rcó—eZdZdZ dd„ZdS)Ú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|ji¬¦«tj||¦«tj||¦«dS) 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ÔCˆŒÝ.Ð/@ÑAÔAˆÔÝ!Ð"3°_Ø-Ð/FñHôHˆŒ åÔ& tÀ6Ø7=¸t¼Ð6OØ:>¼+ð Gñ Gô Gð Gõ Ô˜tÐ8Là9=¼Ø48Ô4Fð,!ð,!ð37´+ð  ?ñ ?ô ?ð ?õ Ô! $°hØ/7¸¼Ð.Eð Gñ Gô Gð GåÔ# DÐ*;Ñ<Ô<Ð<ÝÔ# DÐ*;Ñ<Ô<Ð<Ð<ÐØ@Dð=ð=ð=ð=ð=ð=r3r<có—eZdZdZ dd„ZdS)ÚMobileApplicationServerzGAn all-in-one endpoint featuring Implicit code grant and Bearer tokens.Nc ó@—t|¦«|_t||||¦«|_t j|dd|ji|j¬¦«t j|dd|ji¬¦«tj||dg¬¦«tj||dg¬¦«dS)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ôHˆŒ åÔ& tÀ7à+2°DÔ4Gð7Ià:>¼+ð Gñ Gô Gð Gõ Ô! $°hØ/7¸¼Ð.Eð Gñ Gô Gð GåÔ# DÐ*;Ø;IÐ:Jð Lñ Lô Lð LåÔ# DÐ*;Ø;IÐ:Jð Lñ Lô Lð Lð Lð Lr3r4r5r:r3r2r@r@ps=€€€€€ðRÐQà:>Ø@DðLðLðLðLðLðLr3r@có—eZdZdZ dd„ZdS)ÚLegacyApplicationServerz]An all-in-one endpoint featuring Resource Owner Password Credentials grant and Bearer tokens.Nc óh—t|¦«|_t|¦«|_t ||||¦«|_t j|d|j|jdœ|j¬¦«tj|dd|ji¬¦«tj||¦«tj||¦«dS)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ÔAˆÔÝ!Ð"3°_Ø-Ð/FñHôHˆŒ åÔ˜t¸ à/3Ô/BØ48Ô4Fð,!ð,!ð37´+ð  ?ñ ?ô ?ð ?õ Ô! $°hØ/7¸¼Ð.Eð Gñ Gô Gð GåÔ# DÐ*;Ñ<Ô<Ð<ÝÔ# DÐ*;Ñ<Ô<Ð<Ð<ÐØ@Dð=ð=ð=ð=ð=ð=r3rFcó—eZdZdZ dd„ZdS)ÚBackendApplicationServerzLAn all-in-one endpoint featuring Client Credentials grant and Bearer tokens.Nc ó@—t|¦«|_t||||¦«|_t j|dd|ji|j¬¦«t j|dd|ji¬¦«tj||dg¬¦«tj||dg¬¦«dS)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Ô!JˆÔÝ!Ð"3°_Ø-Ð/FñHôHˆŒ åÔ˜tÐ8Là#7¸Ô9Oð,Qà26´+ð ?ñ ?ô ?ð ?õ Ô! $°hØ/7¸¼Ð.Eð Gñ Gô Gð GåÔ# DÐ*;Ø;IÐ:Jð Lñ Lô Lð LåÔ# DÐ*;Ø;IÐ:Jð Lñ Lô Lð Lð Lð Lr3r4r5r:r3r2rIrI¸s=€€€€€ðWÐVà:>Ø@DðLðLðLðLðLðLr3rIN)r9rrrrrrÚtokensrÚ authorizationr Ú introspectr Úresourcer Ú revocationr rrrr<r@rFrIr:r3r2úrPséðððððððððððððððððð!Ð Ð Ð Ð Ð Ø0Ð0Ð0Ð0Ð0Ð0Ø*Ð*Ð*Ð*Ð*Ð*Ø&Ð&Ð&Ð&Ð&Ð&Ø*Ð*Ð*Ð*Ð*Ð*Ø Ð Ð Ð Ð Ð ð2=ð2=ð2=ð2=ð2=Ð "Ð$6¸ Ø Ð1ñ2=ô2=ð2=ðj$=ð$=ð$=ð$=ð$=Ð0Ð2DÀmØ+Ð-?ñ$=ô$=ð$=ðN Lð Lð Lð Lð LÐ3Ð5GØ.Ð0Bñ Lô Lð LðF"=ð"=ð"=ð"=ð"=˜mÐ-?Ø.Ð0Bñ"=ô"=ð"=ðJ Lð Lð Lð Lð L˜}Ð.@Ø/Ð1Cñ Lô Lð Lð Lð Lr3