The specs
module has been splitted into jose
, oauth1
, oauth2
, and oidc
.
Authlib exported everything into authlib.jose
, you don't have to remember the RFC numbers anymore.
Before v0.11
from authlib.specs.rfc7515 import JWS
from authlib.specs.rfc7519 import JWT
=> v0.11
from authlib.jose import JWS, JWT
Authlib exported everything into authlib.oauth1
.
Before v0.11
from authlib.specs.rfc5849 import AuthorizationServer
=> v0.11
from authlib.oauth1 import AuthorizationServer
OAuth 2.0 is a little complex, you still need to import modules from the rfcXXXX
folder.
Before v0.11
from authlib.specs.rfc7523 import JWTBearerGrant
=> v0.11
from authlib.oauth2.rfc7523 import JWTBearerGrant
But there are shortcuts for the basic modules:
from authlib.oauth2 import OAuth2Error, AuthorizationServer, ResourceProtector
The authlib.specs.oidc
has been renamed to authlib.oidc.core
.
Before v0.11
from authlib.specs.oidc import *
=> v0.11
from authlib.oidc.core import *
https://git.io/fjvpt