168 questions
0
votes
0
answers
39
views
Perform Google login in react native app with own API
I am developing a mobile application using React Native. In this phase I am trying to connect it to my APIs (made using FastAPI with Authlib) to perform authentication with Google.
I do not know if I ...
0
votes
0
answers
55
views
Matrix Synapse Azure / Microsoft SSO: what kind of value is saved / Stored from a Azure user (not object-id)
we want to migrate our LDAP users to SSO from our #synapse #matrix server and we have already many users, which are using Microsoft SSO Login. Matrix Synapse uses Authlib and there is a table (...
0
votes
1
answer
180
views
Authenticating a user with NextCloud using oauth2 with authlib in flask fails at getting access token
I am writing a flask app that authenticates users via oauth2 with a NextCloud instance (and later will use file synchronisation). From what I read this should be fairly straightforward. For example ...
0
votes
0
answers
81
views
Python authlib: how to handle multiple web-servers
I'm developing a web-server based on FastAPI, to be integrated into a container to be deployed on Kubernetes with replicas. Authentication is performed by authlib and Keycloak.
The server which ...
1
vote
0
answers
54
views
How can I implement multiple oauth providers parameters for multi tenant setup
I am using Superset with SSO enabled using Cognito in a multi tenant environment. Each tenant is using a separate user pool. Is it possible to plug the connection parameters based on the tenant so ...
1
vote
0
answers
221
views
How to handle PKCE with Authlib and Google OAuth2
I am trying to determine the best way to enable PKCE in Authlib for Google OAuth2 flow in a FastAPI application.
Currently, the login function is:
@auth_router.get("/login/google")
async def ...
0
votes
0
answers
75
views
Apple login failing with "mismatching_state" error during the OAuth callback, while Google and Microsoft logins are successful
I have an API built using Python FastAPI and the AuthLib library to handle authentication.
I register my apple SignIn Credentials and setting with the following
# Configure Apple OAuth with proper ...
0
votes
0
answers
61
views
FastAPI social authorization error: authlib.integrations.base_client.errors.MismatchingStateError: mismatching_state: CSRF Warning
When im trying to create social authentication using google I got error:
authlib.integrations.base_client.errors.MismatchingStateError: mismatching_state: CSRF Warning! State not equal in request and ...
0
votes
0
answers
80
views
Authlib Oauth2 Azure ssl error "The request body must contain the following parameter: 'client_id'"
I am trying to use Authlib 1.5.1 to authenticate against backend, using Azure as an authentication provider.
My configuration is simple, I'm trying to follow docs:
oauth.register(
'azure',
...
0
votes
0
answers
682
views
FastAPI & Authlib external oauth authentication reuse authlib client
I have trouble understanding how the Authlib middleware works with fastAPI.
I have something working, but I don't think it's the right way to do it.
What I would like is to be able to create a client ...
1
vote
0
answers
159
views
Checking oAuth token expiration in FlaskAppBuilder App
Does anyone know how to check token expiry on requests in a Flask AppBuilder app. I'm specifically talking Superset here, but I think the same would apply anywhere.
I've got an OAUTH configuration for ...
0
votes
0
answers
951
views
FastAPI+Authlib Error: All connection attempts failed
I am trying to implement login with google in my fastapi application
I am running the fastapi application in K8S cluster:
Here is relevant code:
here is my ingress-nginx config file:
apiVersion: ...
0
votes
1
answer
148
views
How to disable cookies altogether in Flask?
I've got an API that we're hosting with flask. API authentication is handled through Auth0 using authlib. For security reasons, we would like to disable cookies altogether, but I can't figure out how ...
2
votes
1
answer
894
views
authlib for linkedin and fastapi
I am trying to create a login using linkedIn and authlib, but I'm running into errors when I try and receive my token. I am able to redirect to the linked in authentication and then redirect to my ...
1
vote
1
answer
1k
views
FastAPI, decode JWT id_token returned from Authlib OAuth with Google
I'm making an API in FastAPI and I want to implement Google Auth, Im using Authlib for that.
I think is important to say that I'M NOT USING TEMPLATES OR SOME KIND OF SSR, my frontend is completely ...