Skip to content

Commit b624f4d

Browse files
committed
Updated docs. Fixed missnamed classes. Making new users active by default
1 parent dc9d539 commit b624f4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ On your project's `settings.py` add this to the `REST_FRAMEWORK` configuration
1212
REST_FRAMEWORK = {
1313
...
1414
'DEFAULT_AUTHENTICATION_CLASSES': (
15-
'rest_framework_firebase_auth.authentication.Firebaseuthentication',
15+
'rest_framework_firebase.authentication.FirebaseAuthentication',
1616
)
1717
...
1818
}

rest_framework_firebase/authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
cred = credentials.Certificate(api_settings.FIREBASE_ACCOUNT_KEY_FILE)
1717
firebase = firebase_admin.initialize_app(cred)
1818

19-
class BaseFirebaseuthentication(BaseAuthentication):
19+
class BaseFirebaseAuthentication(BaseAuthentication):
2020
"""
2121
Token based authentication using firebase.
2222
"""
@@ -87,7 +87,7 @@ def authenticate_credentials(self, payload):
8787
return user
8888

8989

90-
class Firebaseuthentication(BaseFirebaseuthentication):
90+
class FirebaseAuthentication(BaseFirebaseAuthentication):
9191
"""
9292
Clients should authenticate by passing the token key in the "Authorization"
9393
HTTP header, prepended with the string specified in the setting

0 commit comments

Comments
 (0)