NodeJS Grant - Oauth with Django Oauth Toolkit app - python

I'm working with two servers, one a NodeJS app (FeathersJS and Grant for authentication), and the other is a Django app, using django-oauth-toolkit for authentication.
https://github.com/simov/grant
https://pypi.org/project/django-oauth-toolkit/
I am trying to get the NodeJS app to oauth with the python django app, so here is what I have done so far:
Registered Feathers with Django Oauth toolkit -
Configured Feathers/Grant with the following options:
"key": "xxx",
"authorize_url": "https://www.com/o/authorize",
"access_url": "https://www.com/o/token"
But I'm running into an issue where the grant workflow is not receiving the access token, and am stuck at this point. Has anyone tried integrating two apps as such and been successful in this process? I'd appreciate any pointers, suggestions. Thanks!

Related

implementing oauth2 for google calendar api with django

Can anybody direct me to a complete example of implementing oauth2 with django?
From the older posts, I found some bits and pieces, or work-arounds, but I am not yet experienced enough to put the pieces together.
I want to integrate into an web app creating, updating, deleting events.
Followed the quickstart in the documentation, it works fine.
The quickstart is made for a desktop app, I need to use it in a web app. Here I got stuck, on authorizing the app and on receiving the approval of the resource owners to access their calendars.
Thank you for your support.

Implement Azure AD authentication using SAML in web app

I have successfully created Azure AD authentication using MSAL in the angular application, after that I passed the token to Django and validated the token from the azure.
Now I want to implement the SAML2 in Azure AD authentication.
Using this article https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/saml-toolkit-tutorial, I have created SAML toolkit for Azure AD and got login url, logout url, AD Identifier url and certificate. Using this information, I don't know how to implement Azure AD authentication in angular or python.
I have read lot of article, nothing worked.
This toolkit is simply an application used to test access to an Azure AD Enterprise application using SAML.
From the client-side, you need to add a client-side SAML stack to your code.
On the Azure AD side, you connect this stack to an Enterprise application.
There are comments relating to the ADAL / MSAL libraries. You cannot use these as they rely on OpenID Connect not SAML!
#Shakthifuture
Have you checked this StackOverflow answer part:
SAML Authentication in Angular app Using Azure AD
I have used this library to implement to SAML authentication using Django.
pip install django_saml2_auth
this library supports JWT token and uses Angular or any front-end application with Django
https://github.com/fangli/django-saml2-auth

Using openshift Rest Api in Django framework Python application

i want to strarted to build an application using framework Django in python to consume Openshift rest api that the user will be able to authentication and use their resources.
the objectif of this project is to provide a web-based platform to enable Openshift users to create or interact with their online resources using Openshift web api Rest 3.0 .
Specifications of project : The required service should enable existing projects and new projects management for any user having an Openshift online account. Management includes: -Authentication and Authorization -Teams , members and subscription plan management -SSH keys management -Gear, cartridge and application management -Deployment All these capabilities must be implemented using the Openshift API and provided using a Django based web interface.
i try to read the officiel documentation through URL:https://access.redhat.com/documentation/en-US/OpenShift_Online/2.0/html/REST_API_Guide/index.html
but i can't find a way to start building the application and consuming this rest api. have any one an idea to start
If you are writing a new application, I suggest using v3. The web console already has most of this functionality. The REST API reference should help you get started.

Google Apps authentication for App Engine boilerplate gives error

I'm trying to learn how to set up a web application using the Google App Engine Boilerplate that will restrict access to people logging in via our Google Apps domain.
I've downloaded the GAE Boilerplate, and it runs locally and on appspot. To limit login access, I did the following:
In Administration/Application Settings, I set Authentication Type to Google Apps Domain, and specified our domain name (xyz.com) as the Authentication Domain.
In config/production.py, which I've confirmed via app_name edits is being loaded properly by the server, I set 'enable_federated_login' : False,.
But when I push the app and load it, I see the following puzzling error:
You must enable Federated Login Before for this application.
Google App Engine Control Panel -> Administration -> Application Settings -> Authentication Options
This error is coming from boilerplate/lib/basehandler.py, and it appears I'm getting a NotAllowedError.
Could someone point me at the proper process for setting up this boilerplate to work with Google Apps authentication? Thanks!

How to run my web2py application from facebook?

I have created one web2py application, now i have to deploy this application to facebook so the user can login to facebook and can access this application from there, is there any way to achieve this?
Please help me out to resolve this problem.
Regards,
Piks
You have to start understanding how Facebook apps works, after that you will be able to develop web apps using any framework and "deploy" that to be used as a facebook app.
Start here: https://developers.facebook.com/

Categories