
SherwinP.64797 (Customer) asked a question.
Hi, there
I was exploring your product for my company's application authentication purposes, where i'm very much statisfied with the product but there is a slight disappointment that there are no proper guide for integrating okta authentication with django restframework.
It would be help full if some guidance provided.
Also I was going through Auth0 the company that is acquired by you, where in that product there is something called scopes where I can set custom permissions which suits my usecase so is there anything which is equivalent to that in Okta ?
Thanks and Regards
Sherwin P

Hi Sherwin,
Thank you for posting.
While Okta does not have an integration with Django, it does support it with its SDK. Here is the documentation for this:
https://developer.okta.com/code/python/#python-samples
As per the scopes, it does. here is the documentation or that part as well.
https://developer.okta.com/docs/guides/customize-authz-server/create-scopes/
Hi Daniel,
I'm aware of python sdk but as i went through the code example you are using async where django doesn't support it, even if I user async.io I couldn't able to integrate your sdk successfully, so I switched from sdk to your rest api, using your /v1/authorize and /v1/token/ i'm getting access token successfully.
Now the problem is when i'm using normal okta username password for login, I'm getting the access token and can validate whether the token is valid or not but when i'm using social identity providers with okta i'm getting the access token but i cant able to decode it successfully
The reason for failing identity providers token decoding:
The things I need now, is a generalized way to check the validity and payload of the access token issued by your server (both normal login's as well as identity provider's access token)
It will be easy if any of your developer can arrange a quick call to sort of my company's problem also it will be a added advantage for keeping a documentation for integrating django restapi with okta.
Thank you.