基于firebase的django-rest框架认证
djangorestframework-firebase的Python项目详细描述
#django rest framework firebase auth
'rest_framework_firebase.authentication.firebase authentication',
)
…
}
`````
从firebase sdk获取管理凭据`.json',并将它们添加到项目中
````
firebase_auth={
'firebase_帐户密钥文件':'到您的凭据的路径.json',
}
```
“客户端ID”:“,
“身份验证uri”:“https://accounts.google.com/o/oauth2/auth”,
“令牌uri”:“https://accounts.google.com/o/oauth2/token”,
“身份验证提供者x509证书url”:“https://www.googleapis.com/oauth2/v1/certs”,
“客户机x509证书URL”:“
}
}
`````
/*`
'rest_framework_firebase.authentication.firebase authentication',
)
…
}
`````
从firebase sdk获取管理凭据`.json',并将它们添加到项目中
````
firebase_auth={
'firebase_帐户密钥文件':'到您的凭据的路径.json',
}
```
“客户端ID”:“,
“身份验证uri”:“https://accounts.google.com/o/oauth2/auth”,
“令牌uri”:“https://accounts.google.com/o/oauth2/token”,
“身份验证提供者x509证书url”:“https://www.googleapis.com/oauth2/v1/certs”,
“客户机x509证书URL”:“
}
}
`````
/*`